fix(deps): clear js-yaml and postcss dev-scope advisories - #22
Merged
Conversation
The existing `js-yaml@<4.2.0` override was pinned to the range of an older advisory, so it silently stopped protecting anything once CVE-2026-59870 landed covering `>=4.0.0 <4.3.1` — we were resolving 4.3.0 and still exposed. Version-range override selectors are a trap that way: they look active in package.json long after the advisory has moved past them. Widened to `<4.3.1` and added the same guard for postcss's arbitrary .map file read. Both are dev-scope only, so no published artifact was ever affected.
Owner
Author
|
Update: #21 has since merged, so the |
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.
Clears both open Dependabot alerts on
main. Neither had a PR open.js-yaml!!omapresolution (CVE-2026-59870 not backported)postcsssourceMappingURLreads arbitrary.mapfiles whenfromis unsetBoth are development-scope only — neither reaches published
dist/, so no consumer of the package was ever affected. The practical exposure was CI and local builds.The js-yaml override had gone stale
Worth flagging, since it is the actual reason this alert was open rather than covered.
97e0821added"js-yaml@<4.2.0": "^4.2.0"for an earlier advisory. That selector only rewrites versions matching<4.2.0— but the new advisory covers>=4.0.0 <4.3.1. We were resolving 4.3.0, which no longer matched the selector, so the override quietly applied to nothing while still looking active inpackage.json.Widened to
<4.3.1, and added the same style of guard for postcss.Pinned
js-yamlto^4.3.1rather than latest (5.2.3) deliberately — 5.x is a major and@changesets/cliis what pulls this in, so staying on the 4.x line avoids risking the release path for a dev-only fix.Verification
pnpm audit --audit-level=low— No known vulnerabilities foundpnpm test -- --run— 35/35 passingpnpm build— OK (CJS + ESM + declarations)pnpm changeset status— CLI runs correctly on js-yaml 4.3.1, confirming the release tooling still worksNo changeset: dev dependencies only, nothing reaches published
dist/.Note:
biome:checkstill prints the$schemaversion notice on this branch — that is fixed separately in #21 and is info-level, so CI stays green.