Repository navigation
chore(deps): fix Trivy security findings - #426
Merged
Merged
Conversation
- Require patched versions of four vulnerable transitive dependencies - Refresh locked versions without changing scan thresholds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix nine Trivy vulnerability records in four transitive npm dependencies. Require patched versions through the existing overrides mechanism and refresh only their lockfile entries:
The selector parser fix requires the 7.x line; upstream documents the CPU exhaustion fix in 7.1.6. Scan severity, scanners, and ignore policy are unchanged.
Plan and related issues
Scope: eliminate current Trivy findings with focused dependency updates and verify the documentation site still builds. No issue identifiers were supplied.
AI authorship
package.json,package-lock.json.Change classification
Verification
Checkout
chore/fix-trivy-npm-dependencies(head255691f9e21ca79ce59c3c64bbb4ad5e0ca4b25d) in a disposable checkout. Run from the repository root with Node 22 (tested 22.23.3), npm 11.11.0, and Trivy 0.69.3. Trivy DB was updated at 2026-10-06 13:07 UTC.npm ci --no-audit --no-fundnpm run buildtrivy fs --scanners vuln,secret,misconfig --severity CRITICAL,HIGH,MEDIUM --ignore-unfixed --exit-code 1 --skip-dirs node_modules --skip-dirs dist --skip-dirs .git .git diff --check master...HEADThe scan was performed on exported tracked source before installing packages; the skip directories above reproduce that scope after building. Existing npm warnings remain for the deprecated starlight-utils/astro-integration-kit packages and their Astro peer range; installation and build succeed.
Selector-parser compatibility regression
With dependencies installed, run:
Expected: nested, pseudo-class and attribute selectors retain their meaning; malformed CSS rejects; command prints PASS and exits 0. Observed: Passed on Node 22. No production data or deployment involved; dispose of the test checkout after verification.
Security, risk and rollback
package.jsonoverrides carefully and spot-check the four lockfile version/integrity updates.