fix(deps): patch fast-uri production audit advisories (7.9.x) - #29799
Merged
Conversation
`pnpm audit --prod` (the audit CI gates on in `test-template.yml`) flags two advisories, both in `fast-uri` via the shipped dependency path `packages/cli > @prisma/dev > @prisma/streams-local > ajv`: - GHSA-4c8g-83qw-93j6 — host confusion via failed IDN canonicalization (patched `>=3.1.3`) - GHSA-v2hh-gcrm-f6hx — host confusion via literal backslash authority delimiter (patched `>=3.1.4`) Raises the existing override in `pnpm-workspace.yaml` from `fast-uri@<=3.1.1: '>=3.1.2'` to `fast-uri@<=3.1.3: '>=3.1.4 <4'`, resolving `fast-uri` to 3.1.4. The upper bound keeps the resolution within the `^3.x` range `ajv` declares — without it, pnpm resolves to `fast-uri@4.x`, a major `ajv` is not tested against. Backport of #29758 to the 7.9.x release branch.
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
aqrln
approved these changes
Jul 27, 2026
Contributor
size-limit report 📦
|
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.
Overview
Backport of #29758 to the
7.9.xrelease branch.pnpm audit --prod(the audit CI gates on intest-template.yml) flags two advisories on7.9.x, both infast-urivia the shipped dependency pathpackages/cli > @prisma/dev > @prisma/streams-local > ajv:>=3.1.3)>=3.1.4)The branch still carries
fast-uri@<=3.1.1: '>=3.1.2', which resolves to a version inside both advisories' vulnerable ranges.Changes
Raises the existing override in
pnpm-workspace.yamlfromfast-uri@<=3.1.1: '>=3.1.2'tofast-uri@<=3.1.3: '>=3.1.4 <4', resolvingfast-urito 3.1.4. The upper bound keeps the resolution within the^3.xrangeajvdeclares — without it, pnpm resolves tofast-uri@4.x, a majorajvis not tested against.The override line is byte-identical to the one already on
main. Unlike #29758, the lockfile picks up no incidental re-resolution churn here — the diff is 12 lines, confined tofast-urimoving 3.1.2 → 3.1.4 at each call site — because7.9.x's lockfile was regenerated recently by #29795.Out of scope
Dev-tooling-only advisories reported by the full
pnpm auditare intentionally left untouched, consistent with #29758 and prior audit fixes — they are not part of any published package's runtime dependency tree.Verification
pnpm audit --prod→No known vulnerabilities found(exit 0). This is the exact command CI gates on.CI=true pnpm install --frozen-lockfile --lockfile-onlypasses — no lockfile drift.fast-uriresolves to a single version,3.1.4, at every site in the lockfile.Note:
pnpm buildwas not run locally — the machine ran out of disk duringpnpm install, so nonode_modulestree could be materialised.fast-uriis a runtime transitive dependency of the published CLI rather than a build input, and this change touches no source, sopnpm audit --prodis the relevant gate; CI will exercise the build regardless.