LuciferYang opened a new pull request, #60133:
URL: https://github.com/apache/spark/pull/60133
### What changes were proposed in this pull request?
This fixes the npm advisories that can be fixed in `dev` and `ui-test`.
- `dev`: `fast-uri` 3.1.8 -> 3.1.9 in `package-lock.json`, via `npm audit
fix --package-lock-only`. It is in the range `ajv` asks for, so `package.json`
does not change.
- `ui-test`: `glob` ^13.0.3 -> ^14.0.3, and an `overrides` entry `"glob@>=10
<14": "$glob"`, so that `@jest/reporters`, `jest-config` and `jest-runtime`,
which ask for `glob` ^10.5.0, get the same `glob` 14.0.3. That moves
`minimatch` 9.0.9 and 10.2.4 to 11.0.4. `glob` 10 and 13 depend on `minimatch`
^9 and ^10, and no 9.x or 10.x release fixes the advisory, so `glob` has to go
to 14. Jest only calls `glob.sync(pattern, { windowsPathsNoEscape: true })`,
which `glob` 14 keeps.
### Why are the changes needed?
- `fast-uri`: GHSA-w74x-v6f9-j3xg, GHSA-xhq7-xmqj-769h, GHSA-wjr9-j795-jxcr
and GHSA-333x-w4r6-6crp, fixed in 3.1.9.
- `minimatch`: GHSA-g3hv-75wg-m249 (denial of service via globparts
amplification), affecting 7.0.0 to 11.0.0 and fixed in 11.0.1.
This addresses https://github.com/apache/spark/security/dependabot/259,
https://github.com/apache/spark/security/dependabot/260,
https://github.com/apache/spark/security/dependabot/261,
https://github.com/apache/spark/security/dependabot/262 and
https://github.com/apache/spark/security/dependabot/273. `glob` 14.0.3 also
clears GHSA-3g3m-2fjr-6pw4, which `npm audit` reports for `glob` 9.0.0 to
14.0.1.
`deepmerge` (https://github.com/apache/spark/security/dependabot/265, low)
has no fixed release, so `ui-test` still reports it.
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 `dev`, and only the `deepmerge`
chain in `ui-test`. GitHub Actions does not run `npm audit`.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]