fix(deps): pin fast-uri to patched ^3.1.4 to clear host-confusion advisories - #62
Merged
Merged
Conversation
…isories ajv (^8.18.0 -> 8.20.0) pulls in fast-uri via `fast-uri: ^3.0.1`, which resolved to 3.1.2 in the lockfile — inside the vulnerable range of two high-severity advisories: - GHSA-v2hh-gcrm-f6hx: host confusion via literal backslash authority delimiter (vulnerable >=3.0.0 <=3.1.3, patched >=3.1.4) - GHSA-4c8g-83qw-93j6: host confusion via failed IDN canonicalization (vulnerable >=3.0.0 <3.1.3, patched >=3.1.3) Add a bounded pnpm.overrides entry pinning fast-uri to ^3.1.4 (the highest 3.x, staying within ajv's ^3.0.1 range so 4.x breaking changes are avoided). Mirrors the existing ws / fast-json-patch security overrides. Clears both fast-uri findings from `pnpm audit --audit-level=high` and from the bundled standalone validator. Downstream consumers inherit the vulnerable package only through `> @tightknitai/slack-block-kit-validator > ajv > fast-uri`, so releasing this lets them re-resolve to the patched version. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EGTo9mkJj2mBag9gfciCzU
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
slack-block-kit-validator | f5eac39 | Commit Preview URL Branch Preview URL |
Jul 22 2026, 06:31 PM |
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.
Summary
Downstream consumer
block-kitchen'sAudit (pnpm)CI job (PR #160, failing run) failspnpm audit --audit-level=highon two high-severityfast-uriadvisories. The vulnerable package reaches it only through this validator:ajv@8.20.0declaresfast-uri: ^3.0.1, which resolved to the vulnerable3.1.2in our lockfile. This pinsfast-urito the patched^3.1.4at the source, using the samepnpm.overridesmechanism the repo already uses forwsandfast-json-patchsecurity bumps.Advisories addressed:
>=3.0.0 <=3.1.3, patched>=3.1.4)>=3.0.0 <3.1.3, patched>=3.1.3)The override is bounded to
^3.1.4(the highest 3.x) deliberately —fast-uri@4.xis a breaking major that falls outside ajv's^3.0.1range.Type of change
src/slack-block-kit.schema.json)Changes
"fast-uri@<3.1.4": "^3.1.4"topnpm.overridesinpackage.json.pnpm-lock.yaml:fast-uri3.1.2→3.1.4(single resolved copy, shared byajv).Testing
pnpm testpasses (499 tests, Node + Bun)pnpm typecheckpassespnpm lintpassespnpm validate-schemapasses (if the schema changed) — N/A, schema unchangedtest/covering the change — N/A, dependency-only change; existing suite exercises ajv/fast-uri via validationpnpm audit --audit-level=highno longer reportsfast-uri;pnpm build+ worker smoke bundle succeed with the patched versionSchema changes
Checklist
README.md— N/A, no public API changeNote on propagation:
pnpm.overridesapply to this repo's own install (and the bundledstandalone-validator.js), but they are not inherited by consumers. Once this merges and release-please cuts the patch release,block-kitchen's audit goes green when it bumps@tightknitai/slack-block-kit-validatorto the new version — bumping the dependency forces pnpm to re-resolveajv'sfast-urito3.1.4. I can open that follow-up bump inblock-kitchenif you'd like.Generated by Claude Code