Conversation
Trivy flagged 6 HIGH vulns in yarn.lock: fast-uri SSRF/host-confusion issues (CVE-2026-75899, -75931, -75975, -76172) and a js-yaml DoS (CVE-2026-84375). Bump resolutions and pin packageManager so yarn (Berry-format lockfile) doesn't get resolved by a mismatched classic yarn 1.x install. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Hi Ajay, Thanks so much for putting this together. Getting the fast-uri and js-yaml advisories patched is really valuable, and the details all check out: the five CVEs are real HIGH advisories, the versions you picked are the first patched releases, and the I wanted to flag the CI failures, since I think they come from a small tooling mismatch rather than anything in the bump itself, and I'd love to help get this merged. What seems to be happening. The lockfile looks like it was regenerated with Yarn 3.6.4, but this repo builds with A possible fix. Would you be open to removing the The reason I'd suggest dropping the pin rather than updating it: Please let me know if I've misread anything. I'm also very happy to push the change or pair on it if that would save you some time. Thanks again for picking this up! |
CI installs with jlpm (bundled Yarn 3.5.0), but the lockfile was regenerated with Yarn 3.6.4, which computes a different hash for Yarn's builtin TypeScript patch. That caused an unrelated lockfile diff and tripped the immutable install (YN0028) in CI. Removing the pin (jlpm ignores it anyway) and regenerating with jlpm reverts the stray hash, leaving only the intended fast-uri and js-yaml bumps. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Confirmed your diagnosis — reproduced the hash mismatch locally (jlpm/3.5.0 vs the pinned 3.6.4) and applied your suggested fix: dropped the |
Tornado 6.5.9 added an allowed_symlink_directory initializer arg to StaticFileHandler as a security fix, but only set it in initialize(). Jupyter's FileFindHandler subclass skips initialize(), so any request hit AttributeError: 'FileFindHandler' object has no attribute 'allowed_symlink_directory', breaking jupyterlab.browser_check in CI. 6.5.10 adds the attribute as a class-level default, fixing subclasses that don't call initialize(). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
3.1.7 was the first patched release for the CVE; 3.1.8 is the latest release still within ajv's declared range (fast-uri@^3.0.1), so pin to that instead of stopping at the minimum patched version. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Summary
yarn.lock: fast-uri SSRF/host-confusion (CVE-2026-75899, CVE-2026-75931, CVE-2026-75975, CVE-2026-76172) and js-yaml DoS (CVE-2026-84375)resolutionsinpackage.jsonto pull in patched versions (fast-uri-> 3.1.7,js-yaml-> 3.15.2/4.3.2) and regeneratedyarn.lockpackageManager: yarn@3.6.4soyarn installalways uses the Berry-compatible version that matches this repo's lockfile format, instead of whatever classic/Berry yarn happens to be on PATHTest plan
trivy fs --scanners vulnshows 0 vulnerabilities (was 6 HIGH)yarn installcompletes cleanly with pinned yarn 3.6.4tsc --noEmitpasses with no new type errors🤖 Generated with Claude Code