Skip to content

fix(security): bump fast-uri to 3.1.6 - #32136

Closed
karanh37 wants to merge 1 commit into
mainfrom
security/fast-uri-3.1.6
Closed

karanh37 wants to merge 1 commit into
mainfrom
security/fast-uri-3.1.6

Conversation

@karanh37

Copy link
Copy Markdown
Contributor

Advisory

fast-uri 3.1.5 is affected by four high-severity advisories, all fixed in 3.1.6:

CVE Snyk ID CVSS Title
CVE-2026-75931 SNYK-JS-FASTURI-19256867 8.7 Interpretation Conflict
CVE-2026-76172 SNYK-JS-FASTURI-19256869 8.7 Improper Handling of URL Encoding (Hex Encoding)
CVE-2026-75975 SNYK-JS-FASTURI-19256871 8.7 Improper Validation of Syntactic Correctness of Input
CVE-2026-75899 SNYK-JS-FASTURI-19256873 8.7 Double Decoding of the Same Data

Raw scanner finding

From ui-dep-scan.json / server-dep-scan.json, security-scan run 33031058562 (head 36f5148884):

severity=high  package=fast-uri  version=3.1.5  title="Double Decoding of the Same Data"
  id=SNYK-JS-FASTURI-19256873  fixedIn=['2.4.5', '3.1.6', '4.1.3']  isUpgradable=True
  from=['[email protected]', '@rjsf/[email protected]', '[email protected]', '[email protected]']

(Three sibling entries with the same coordinates for the other three CVEs.)

Why the version was stuck

fast-uri is not a direct dependency of either workspace. It arrived at 3.1.5 because
#30915 added an explicit
resolutions pin on 2026-08-04 to clear the previous round of fast-uri CVEs. That pin
is now what holds the tree on the vulnerable version, so bumping the pin — rather than any
dependencies entry — is the fix.

What I verified

  • The advisory is coherent. npm view fast-uri versions lists … 3.1.4, 3.1.5, 3.1.6, 4.0.0, … 4.1.3. 3.1.6 is a real published release and 3.1.5 is genuinely below it.
  • The pin is in range for every declared dependent. The only requester in either lockfile is ajv; npm view [email protected] dependencies.fast-uri → ^3.0.1. 3.1.6 satisfies it. This is an in-range patch bump inside 3.1.x, not a forced major.
  • No first-party code imports fast-uri. grep -rn fast-uri over openmetadata-ui/.../ui/src and openmetadata-ui-core-components/.../ui/src returns nothing; it is reached only through ajv → @rjsf/validator-ajv8. There is no API surface of ours to break.
  • Lockfiles regenerated with yarn install --ignore-scripts (yarn 1.22.19, Node 22.22.2) in each workspace. The fast-uri hunk is 4 lines changed in each lockfile.
  • Installed version confirmed as 3.1.6 in both workspaces' node_modules after install.
  • openmetadata-ui-core-components builds green — yarn build succeeds (Vite library build + vite-plugin-dts declarations, exit 0).

Manifests touched

  • openmetadata-ui/src/main/resources/ui/package.json — resolutions."fast-uri": 3.1.5 → 3.1.6
  • openmetadata-ui/src/main/resources/ui/yarn.lock
  • openmetadata-ui-core-components/src/main/resources/ui/package.json — same pin
  • openmetadata-ui-core-components/src/main/resources/ui/yarn.lock

Only the openmetadata-ui workspace was flagged by the scanner. openmetadata-ui-core-components
carries the identical resolutions pin at the identical vulnerable version, so it is bumped in the
same change rather than left behind to be re-flagged later.

What I did NOT test

  • No openmetadata-ui build, tsc --noEmit, Jest, Playwright, or lint run. Only the
    ui-core-components build was executed.
  • Neither CVE was reproduced, and no behavioural difference between 3.1.5 and 3.1.6 was
    exercised. The change rests on the upstream advisory and on fast-uri having no first-party
    caller here.
  • Incidental lockfile churn, disclosed: the openmetadata-ui-core-components lockfile also
    gained two unrelated name string-width-cjs / name strip-ansi-cjs alias-metadata lines.
    These are written by the local yarn 1.22.19 for aliased dependencies and are not caused by this
    bump; they are left in so the committed lockfile matches what yarn install actually produces.

Real-world exposure

Low. fast-uri is used here only by ajv for $ref/format: uri resolution inside
@rjsf/validator-ajv8, i.e. JSON-Schema-driven connector forms in the UI. Still worth fixing —
these are parser-correctness bugs in a URI parser reached from user-supplied schema content.

🤖 Generated with Claude Code

fast-uri 3.1.5 is affected by four high-severity advisories
(CVE-2026-75931, CVE-2026-76172, CVE-2026-75975, CVE-2026-75899),
all fixed in 3.1.6.

Both UI workspaces already pinned fast-uri via `resolutions`, so the
pin itself was holding the tree on the vulnerable version. Raising the
pin to 3.1.6 is in range for the only declared requester in either
lockfile (ajv 8.18.0 declares `fast-uri: ^3.0.1`), so this is an
in-range patch bump rather than a forced upgrade.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Aug 27, 2026
@gitar-bot

gitar-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Bumps the fast-uri dependency resolution to version 3.1.6 across both UI workspaces to resolve four high-severity vulnerabilities. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

Copy link
Copy Markdown
Contributor

❌ UI Checkstyle Failed

❌ Licence Header

One or more files are missing or have an outdated Apache 2.0 licence header.

Affected files
  • openmetadata-ui/src/main/resources/ui/src/jsons/connectionSchemas/connections/messaging/natsConnection.json

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant