Skip to content

fix(deps): resolve fast-uri to 3.1.9 and move the inert 4.1.4 overrides to 4.2.3 - #21

Open
constantin-jais wants to merge 1 commit into
migrate/recover-codefrom
work/fast-uri-3-1-9
Open

constantin-jais wants to merge 1 commit into
migrate/recover-codefrom
work/fast-uri-3-1-9

Conversation

@constantin-jais

Copy link
Copy Markdown
Contributor

Door: two-way
Origin: observed 2026-11-24 GHSA-w74x-v6f9-j3xg
Not-added: hosted-service, telemetry

Summary

bun audit on the served branch (b841d73, composed at generation a00daec8) reports four fast-uri advisories on fast-uri@3.1.8, reached through ajv@8.20.0 (fast-uri: ^3.0.1). The first patched release of the 3.1 line is 3.1.9 (first_patched_version of https://api.github.com/advisories/GHSA-w74x-v6f9-j3xg, range >= 3.0.0, < 3.1.9).

File Before After
bun.lock fast-uri@3.1.8, integrity sha512-GZMt… fast-uri@3.1.9, integrity sha512-hS/0… (the one the registry serves for 3.1.9)
packages/{starter,testing,ui,web-platform}/package.json overrides "fast-uri": "4.1.4" "fast-uri": "4.2.3"

The four overrides entries are in the vulnerable 4.x range (>= 4.0.0, < 4.2.3). They never took effect in this workspace: the lockfile resolved 3.1.8 with them present, and a frozen install kept 3.1.8. They are moved to the first patched 4.x release so that an install of one package outside this workspace does not bring the advisories back. This part changes no resolution here.

Release age, against minimumReleaseAge = 259200 (3 days, bunfig.toml): 3.1.9 published 2026-10-19T23:05:26.357Z, 4.2.3 published 2026-10-19T22:51:36.634Z (curl -s https://registry.npmjs.org/fast-uri | jq '.time["3.1.9"], .time["4.2.3"]'). Both are older than the floor on 2026-11-24.

The lockfile diff is one line (git diff origin/migrate/recover-code -- bun.lock, 1 insertion, 1 deletion). bun install was not run in this clone: it rewrites the file:../<sibling> entries of the lock, so the line was edited by hand with the registry integrity and proved on the composed tree below. There is no package-lock.json (git ls-files | grep package-lock returns nothing).

Evidence

Composition used for the proof. run-composition.py --phase prepare of libre-ai/project-governance@a00daec8 for target application-development-toolkit, revision b841d73; bun install --frozen-lockfile --ignore-scripts in project-governance, schemas-and-contracts, then the toolkit; the five edited files were then copied over the prepared toolkit.

Step Base lock (3.1.8) This branch
bun install --frozen-lockfile --ignore-scripts exit 0, 52 packages exit 0, 4 packages; bun.lock byte-identical to the committed one after install (cmp)
bun audit 4 vulnerabilities (2 moderate, 2 low), all fast-uri >=3.0.0 <3.1.9 via workspace:@libre-ai/ui › ajv No vulnerabilities found
node_modules/fast-uri/package.json .version 3.1.8 3.1.9

The base column is the neutralisation of the change: the unedited lock stays red on the same command.

bun run --cwd packages/web-platform test: 15 pass, 0 fail. bun run --cwd packages/testing test: 23 pass, 0 fail. Both under this branch's tree on the composition.

Class sweep. git grep -n 'fast-uri' -- . ':!bun.lock' returns the four manifests, all moved. git grep -n 'fast-uri' bun.lock returns three lines: the ajv dependency range ^3.0.1 (a range, left), the resolution line (moved). git grep -n -i 'fast_uri\|fast-uri@' returns only the resolution line, so no other spelling exists.

Not run locally. bun run check and bun run check:e2e (UI build and Playwright browsers); the CI check composition / validate is the reference. The unavailable-Actions state is reported as unavailable, not green.

Review evidence

Self-check of the diff after git add (git diff --staged): five files, one line each. No sub-agent review. No owner arbitration is written by an agent. Merging is the owner's.

Blast radius

Runtime dependency of ajv (schema validation) moves from 3.1.8 to 3.1.9, a patch release of the same line. The overrides entries have no effect in this workspace. Reverted by git revert <merge commit>.

Not done in this pull request

  • cargo-deny, RustSec, Rust version, local check-dependency-policy copy: the repository carries none (git ls-files | grep -iE 'Cargo|\.rs$|rust-toolchain|deny\.toml|check-dependency-policy' prints nothing, exit 1; ls -A .config reports no such directory).
  • reuse version: the one site, .github/workflows/playwright-guid-diagnostic.yml:53 (pipx install reuse==6.2.0), is left. It sits in the historical replay of composition tooling 8a27b8f5 (whose own validate-composition.yml:98 writes reuse==6.2.0), which AGENTS.md and the generation bump of chore(pins): move governance pins to generation a00daec8 #20 treat as a deliberate historical site. The job also runs only for head ref feat/forge-realization, so a change there would not be exercised by any CI. Moving it to 6.3.0 (libre-ai/project-governance#309) is the owner's call.

…es to 4.2.3

bun audit reported four fast-uri advisories on 3.1.8 (reached through
ajv ^3.0.1). 3.1.9 is the first patched release of the 3.1 line. The
lockfile entry is the only line changed in bun.lock.

The four workspace package.json files declared an override of fast-uri
4.1.4, which is inside the vulnerable 4.x range (< 4.2.3). They had no
effect in this workspace (the lock resolved 3.1.8 and a frozen install
kept it); they are moved to the first patched 4.x release so that an
install of a package outside this workspace does not bring the
advisories back.

Signed-off-by: Constantin Jais <74049135+constantin-jais@users.noreply.github.com>
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.

1 participant