fix(deps): three advisories in the runtime dependency tree, two of them high - #81
Merged
Conversation
…em high `npm audit --audit-level=high --omit=dev` is a required check and went red on main. The findings are real, all transitive, and all fixable inside the ranges package.json already declares — so this is a lockfile-only change. * fast-uri 3.1.4 -> 3.1.5 (HIGH, GHSA-7p8r-x3mc-p8w7). Host confusion via a backslash authority introducer: a URL whose authority is introduced with a backslash parses to a different host than a resolver reaches. Arrives through @anthropic-ai/claude-agent-sdk -> @modelcontextprotocol/sdk -> ajv. * ip-address 10.2.0 -> 10.4.0 (HIGH, three advisories). Address4 decoded leading-zero octets as decimal where resolvers read them as octal; a CIDR suffix suppressed special-use classification; IPv4-mapped and NAT64 IPv6 addresses were misclassified. Each one lets an address pass an SSRF or trust-boundary check and resolve somewhere else. * hono 4.12.31 -> 4.13.0 (moderate, GHSA-8j4g-w8fx-2239). ReDoS in the CORS middleware via Access-Control-Request-Headers. The advisory line matters for fast-uri: the fix for the 4.x line is 4.1.2 and for the 3.x line it is 3.1.5. This tree is on 3.x, so 4.1.2 is not the fix here. package.json is untouched — every bump is within an existing range, so nothing about what this package declares has changed. The audit reports zero vulnerabilities afterwards, and the 502 tests and lint pass on the new tree.
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.
npm audit --audit-level=high --omit=devis a required check and went red on main. The findings are real, all transitive, and all fixable inside the rangespackage.jsonalready declares — so this is a lockfile-only change.fast-uriip-addresshonoWhat they actually allow.
fast-uriparses a URL whose authority is introduced with a backslash to a different host than a resolver reaches. The threeip-addressissues each let an address pass an SSRF or trust-boundary check and then resolve somewhere else — leading-zero octets decoded as decimal where resolvers read octal, a CIDR suffix suppressing special-use classification, and misclassified IPv4-mapped/NAT64 IPv6 addresses.fast-uriarrives through@anthropic-ai/claude-agent-sdk→@modelcontextprotocol/sdk→ajv.The advisory line matters. The fix for
fast-uri's 4.x line is 4.1.2; for the 3.x line it is 3.1.5. This tree is on 3.x, so 4.1.2 is not the fix here — worth stating because the scanner output for a sibling repo names 4.1.2 and they are not interchangeable.package.jsonis untouched — every bump is within an existing range, so nothing about what this package declares has changed.Verified:
npm audit --audit-level=high --omit=devreports 0 vulnerabilities (exit code read from the command itself, not off the end of a pipe), 502 tests pass across 33 files, and lint is clean on the reinstalled tree.