Skip to content

fix: update fast-uri to 3.1.5 via lockfile (CVE-2026-13676, CVE-2026-18446) - #229

Open
anupamme wants to merge 2 commits into
Hacktoberfest:mainfrom
anupamme:fix-repo-hacktoberfest-2022-cve-2026-13676-fast-uri
Open

fix: update fast-uri to 3.1.5 via lockfile (CVE-2026-13676, CVE-2026-18446)#229
anupamme wants to merge 2 commits into
Hacktoberfest:mainfrom
anupamme:fix-repo-hacktoberfest-2022-cve-2026-13676-fast-uri

Conversation

@anupamme

@anupamme anupamme commented Aug 20, 2026

Copy link
Copy Markdown

Summary

Updates fast-uri from 3.0.6 to 3.1.5 by regenerating the lockfile — no npm overrides block.

Dependency path

serve@14.2.6
└── ajv@8.18.0 (declares "fast-uri": "^3.0.1")
    └── fast-uri@3.1.5  ← was 3.0.6

ajv@8.x has always declared "fast-uri": "^3.0.1". fast-uri@3.1.5 is the latest patched 3.x release and satisfies that range naturally, so the fix requires only a lockfile update — the overrides block from the previous commit has been removed.

Vulnerabilities addressed

CVE Severity Description
CVE-2026-13676 HIGH Security policy bypass via improper Unicode hostname canonicalization
CVE-2026-18446 (GHSA-7p8r-x3mc-p8w7) HIGH Additional fast-uri security issue patched in 3.1.5 / 4.1.2 / 2.4.4

Verification

$ npm ls fast-uri
hacktoberfest-2022@0.1.0
└─┬ serve@14.2.6
  └─┬ ajv@8.18.0
    └── fast-uri@3.1.5

No (overridden) annotation — resolved naturally within ajv's declared range.

$ npm run test:unit
ℹ tests 193
ℹ pass  193
ℹ fail  0

Changes

  • package.json — removed overrides block
  • package-lock.jsonfast-uri now resolves to 3.1.5

Automated dependency upgrade by OrbisAI Security
@MattIPv4

Copy link
Copy Markdown
Contributor

🤨 An automated AI fix, which is setting an override, creating a maintenance headache, instead of properly bumping dependencies to remove the vulnerable versions

…update to 3.1.5

fast-uri is a transitive dependency pulled in via:
  serve → ajv@8.x (declares "fast-uri": "^3.0.1") → fast-uri

ajv@8.x's declared range is "^3.0.1", which allows up to but not
including 4.0.0. fast-uri@3.1.5 is the latest patched 3.x release
and satisfies this range naturally — no npm overrides block needed.

Removes the "overrides": { "fast-uri": "4.1.2" } that forced a
cross-major-version jump outside ajv's declared range, and updates
the lockfile to resolve fast-uri to 3.1.5 instead.

Addresses both CVE-2026-13676 and CVE-2026-18446 (GHSA-7p8r-x3mc-p8w7).
@anupamme anupamme changed the title fix: upgrade fast-uri to 4.0.1, 3.1.3, 2.4.2 (CVE-2026-13676) fix: update fast-uri to 3.1.5 via lockfile (CVE-2026-13676, CVE-2026-18446) Aug 20, 2026
@anupamme

Copy link
Copy Markdown
Author

Thanks for catching this — you're right. The override wasn't the correct approach.

I've traced the dependency path: serve → ajv@8.x → fast-uri. Since ajv@8.x declares "fast-uri": "^3.0.1" (a range it has kept across all v8 releases), fast-uri@3.1.5 satisfies it naturally. I've removed the overrides block and updated the lockfile so fast-uri resolves to 3.1.5 within ajv's existing declared range — no override needed.

I've also updated the target to 3.1.5 rather than the earlier 4.1.2, which patches both CVE-2026-13676 and the subsequently-disclosed CVE-2026-18446 (GHSA-7p8r-x3mc-p8w7). All 193 unit tests pass.

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