Skip to content

chore(deps): fix npm audit vulnerabilities#691

Open
andrewkmin wants to merge 1 commit into
mainfrom
valet/npm-audit-fixes
Open

chore(deps): fix npm audit vulnerabilities#691
andrewkmin wants to merge 1 commit into
mainfrom
valet/npm-audit-fixes

Conversation

@andrewkmin
Copy link
Copy Markdown
Contributor

Summary

Resolves all 5 npm audit vulnerabilities in scripts/openapi-gen/ via npm audit fix (non-breaking, transitive-only).

Before / after

low moderate high critical total
before 1 3 1 0 5
after 0 0 0 0 0

Packages bumped (all transitive, no package.json changes)

Package Before After Advisory
ajv 8.17.1 8.20.0 GHSA-2g4f-4pwh-qvx6 — ReDoS via $data (moderate)
diff 4.0.2 4.0.4 GHSA-73rr-hh4g-fpgx — DoS in parsePatch/applyPatch (low)
fast-uri 3.0.6 3.1.2 GHSA-q3j6-qgpj-74h6 + GHSA-v39h-62p7-jpjc — path traversal & host confusion (high)
js-yaml 4.1.0 4.2.0 GHSA-mh29-5h37-fv8m — prototype pollution in merge << (moderate)
yaml 1.10.2 1.10.3 GHSA-48c2-rrv3-qjmp — stack overflow on deeply nested YAML (moderate)

Verification

  • npm install (in scripts/openapi-gen/) — succeeded, 89 packages installed, 0 vulnerabilities reported.
  • npx tsc --noEmit -p . — clean, no type errors.
  • npm start -- --help — CLI loads and prints help cleanly (no runtime regressions).
  • npm audit after fix — found 0 vulnerabilities.

Remaining vulnerabilities

None. All 5 were resolved by the non-breaking automated fix; no --force upgrades were needed and no major version bumps were taken.

Notes

  • The root package-lock.json at the repo root has an empty packages: {} block and is unrelated — the only real Node project is under scripts/openapi-gen/.
  • No package.json changes; this is a lockfile-only change.

Resolves 5 vulnerabilities (1 high, 3 moderate, 1 low) in scripts/openapi-gen via npm audit fix (non-breaking transitive bumps).

- ajv 8.17.1 -> 8.20.0 (moderate: ReDoS in $data option)
- diff 4.0.2 -> 4.0.4 (low: DoS in parsePatch/applyPatch)
- fast-uri 3.0.6 -> 3.1.2 (high: path traversal + host confusion)
- js-yaml 4.1.0 -> 4.2.0 (moderate: prototype pollution in merge <<)
- yaml 1.10.2 -> 1.10.3 (moderate: stack overflow on deeply nested collections)

No package.json changes needed. npm install and tsc --noEmit pass; openapi-gen CLI loads cleanly.
@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented Jun 2, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
turnkey-docs 🟢 Ready View Preview Jun 2, 2026, 4:26 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@andrewkmin andrewkmin requested a review from Copilot June 2, 2026 04:25
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedjs-yaml@​4.1.0 ⏵ 4.2.098 +2100 +210088100

View full report

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • scripts/openapi-gen/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 481 to +484
"node_modules/js-yaml": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz",
"integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==",
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.

2 participants