Skip to content

fix(deps): update fast-uri to 3.1.7, clearing four high advisories - #190

Merged
Ardnived merged 1 commit into
mainfrom
claude/fix-fast-uri-advisories
Sep 2, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/fix-fast-uri-advisories

Conversation

@Ardnived

@Ardnived Ardnived commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Dependency Audit has been failing on every PR since four fast-uri advisories were published. This bumps the lockfile entry to a patched version. The lockfile is the entire diff — no package.json change, no override, no baseline entry.

Closes #189.

The four advisories, and why one bump clears all of them

Advisory Vulnerable Patched
GHSA-5jgf-p345-68v8 >=3.1.3 <3.1.6 >=3.1.6
GHSA-f65p-4m7j-42xc >=3.0.0 <3.1.6 >=3.1.6
GHSA-fph4-wmhf-6fwf >=3.1.2 <3.1.6 >=3.1.6
GHSA-jqff-g426-hqxp >=3.0.0 <3.1.6 >=3.1.6

All four are the same package at the same single path:

[email protected] declares fast-uri: ^3.0.1, so 3.1.6 was already inside the allowed range — the lockfile was simply pinned below a version its own constraints permitted. pnpm update fast-uri moves it to 3.1.7.

Why an update rather than a baseline entry

audit-baseline.json describes itself as the line between debt already booked and something new, and it is currently empty — a state #101 worked to reach. Booking four entries to unblock a config PR would have spent that for nothing, and would have needed a judgement about whether the advisories are reachable through the widget.

They did not need one. The file's own note had already called this shape:

"an in-range pnpm update (the lockfile was sitting at the floor of ranges that already allowed the patched versions)"

Same situation, one command. Worth trying first the next time this gate goes red. The baseline stays empty, so --strict in the weekly audit.yml has nothing to prune.

Verification

node scripts/check-audit.mjs
→ 0 advisories in production dependencies — 0 critical, 0 high, 0 moderate, 0 low
→ new (not in audit-baseline.json): 0
→ exit 0

Lean gate (.claude/skills/pr-prep/check.sh): lint + typecheck + 114 files / 1514 tests passed, 20s.

Lockfile diff is 4 insertions / 4 deletions, all [email protected] → [email protected].

Preview

No behaviour change — a transitive lockfile bump inside an existing semver range.

🤖 Generated with Claude Code

`Dependency Audit` had been failing on every PR since four fast-uri advisories
were published:

  GHSA-5jgf-p345-68v8  >=3.1.3 <3.1.6
  GHSA-f65p-4m7j-42xc  >=3.0.0 <3.1.6
  GHSA-fph4-wmhf-6fwf  >=3.1.2 <3.1.6
  GHSA-jqff-g426-hqxp  >=3.0.0 <3.1.6

All four are the same package at the same path — a transitive of payload via
`[email protected]`, which declares `fast-uri: ^3.0.1`. The patched 3.1.6 is inside
that range, so the lockfile was simply sitting below a version its own
constraints already allowed: `pnpm update fast-uri` moves it to 3.1.7 and the
lockfile is the whole diff. No package.json change, no override, no baseline
entry.

That is the same shape as #101, and `audit-baseline.json`'s own note predicted
it — "the lockfile was sitting at the floor of ranges that already allowed the
patched versions". Worth checking that first the next time this gate goes red;
it cost one command here.

The baseline stays empty, which is the point: nothing was booked as accepted
debt, so `--strict` in the weekly audit has nothing to prune.

Closes #189

Co-Authored-By: Claude Opus 5 <[email protected]>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d46307
Status: ✅  Deploy successful!
Preview URL: https://e09ff273.sahajatlas.pages.dev
Branch Preview URL: https://claude-fix-fast-uri-advisori.sahajatlas.pages.dev

View logs

@Ardnived
Ardnived merged commit 7919d6d into main Sep 2, 2026
5 checks passed
@Ardnived
Ardnived deleted the claude/fix-fast-uri-advisories branch September 2, 2026 22:46
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.

fix(deps): four new high/critical fast-uri advisories fail the audit gate on every PR

1 participant