Skip to content

[SPARK-58256][INFRA][TEST] Fix npm vulnerabilities in ui-test and dev#57426

Closed
LuciferYang wants to merge 1 commit into
apache:masterfrom
LuciferYang:fix-npm-vulns-jul2026
Closed

[SPARK-58256][INFRA][TEST] Fix npm vulnerabilities in ui-test and dev#57426
LuciferYang wants to merge 1 commit into
apache:masterfrom
LuciferYang:fix-npm-vulns-jul2026

Conversation

@LuciferYang

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This clears the eight high-severity npm audit advisories that Dependabot reported against the two npm projects in the repo, dev and ui-test. All are resolved in range by npm audit fix, so only the two package-lock.json files change; no package.json and no direct dependency is touched.

Package version changes:

  • dev: brace-expansion 1.1.14 -> 1.1.16, js-yaml 4.2.0 -> 4.3.0, fast-uri 3.1.2 -> 3.1.4.
  • ui-test: js-yaml 4.2.0 -> 4.3.0, and the several transitive brace-expansion copies to their patched releases (5.0.6 -> 5.0.7, 2.1.1 -> 2.1.2, 1.1.15 -> 1.1.16).

Why are the changes needed?

npm audit reports these high-severity advisories:

These are dev/test-only dependencies, but it is worth keeping the audit clean.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

npm audit reports 0 vulnerabilities in both projects, and npm ci reproduces the lockfiles cleanly. The ui-test jest suite (22 tests) and dev/lint-js both pass.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.8)

### What changes were proposed in this pull request?

This clears the eight high-severity `npm audit` advisories that Dependabot
reported against the two npm projects in the repo, `dev` and `ui-test`. All are
resolved in range by `npm audit fix`, so only the two `package-lock.json` files
change; no `package.json` and no direct dependency is touched.

Package version changes:

- `dev`: `brace-expansion` 1.1.14 -> 1.1.16, `js-yaml` 4.2.0 -> 4.3.0,
  `fast-uri` 3.1.2 -> 3.1.4.
- `ui-test`: `js-yaml` 4.2.0 -> 4.3.0, and the several transitive
  `brace-expansion` copies to their patched releases (5.0.6 -> 5.0.7,
  2.1.1 -> 2.1.2, 1.1.15 -> 1.1.16).

### Why are the changes needed?

`npm audit` reports these high-severity advisories:

- `brace-expansion` GHSA-3jxr-9vmj-r5cp (CVE-2026-13149): DoS via
  exponential-time expansion of consecutive non-expanding `{}` groups.
- `js-yaml` GHSA-52cp-r559-cp3m (CVE-2026-59869): YAML merge-key chains can
  force quadratic CPU consumption.
- `fast-uri` GHSA-4c8g-83qw-93j6 (CVE-2026-13676) and GHSA-v2hh-gcrm-f6hx
  (CVE-2026-16221): host confusion via failed IDN canonicalization and via a
  literal backslash authority delimiter.

These are dev/test-only dependencies, but it is worth keeping the audit clean.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

`npm audit` reports 0 vulnerabilities in both projects, and `npm ci` reproduces
the lockfiles cleanly. The `ui-test` jest suite (22 tests) and `dev/lint-js`
both pass.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.8)
@LuciferYang

Copy link
Copy Markdown
Contributor Author

cc @dongjoon-hyun @HyukjinKwon @uros-b

@dongjoon-hyun

Copy link
Copy Markdown
Member

Merge Summary:

Posted by merge_spark_pr.py

@LuciferYang

Copy link
Copy Markdown
Contributor Author

Thank you @dongjoon-hyun @HyukjinKwon @uros-b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants