fix(security): patch 4 fast-uri CVEs and stop tag interpolation in release.yml - #47
Merged
Merged
Conversation
…lease.yml fast-uri 3.1.5 is vulnerable to four high-severity advisories reachable through the ajv chain in packages/typescript. Two are SSRF via malformed IPv6 normalization (GHSA-f65p-4m7j-42xc) and repeated hostname percent-decoding (GHSA-fph4-wmhf-6fwf); two are host confusion via skipped IDN canonicalization (GHSA-5jgf-p345-68v8) and percent-encoded scheme normalization (GHSA-jqff-g426-hqxp). Lockfile moves to 3.1.7, which is past the 3.1.6 fix for all four. npm audit now reports zero. release.yml also substituted github.event.release.tag_name directly into two run: blocks. ${{ }} expansion happens before the shell parses the line, so a crafted tag name is shell input, not an argument. Both now pass the value through env. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbDBXDWWvMFa7c2jGgyq9t
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.
Part of a proactive security sweep across agentrust-io.
fast-uri: 4 high-severity CVEs
packages/typescriptpinned fast-uri 3.1.5 transitively through ajv. All four open Dependabot alerts on this repo are that one package:Lockfile moves to 3.1.7, past the 3.1.6 fix line for all four.
npm auditgoes from 1 high to zero. Lockfile-only, no package.json change, no API surface touched.release.yml tag interpolation
Two
run:blocks substitutedgithub.event.release.tag_namedirectly into the shell.${{ }}expands before the shell parses the line, so the tag name is shell input rather than an argument. Both now pass it throughenv:. Same forgithub.repositoryon the upload line.This one is defence in depth, not a live hole: creating a release already requires write access. It removes the primitive.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XbDBXDWWvMFa7c2jGgyq9t