Skip to content

fix(deps): bump source-map-js to 1.2.2 for GHSA-68fv-2mgg-jv7q - #70

Merged
htcom-code merged 1 commit into
mainfrom
fix/source-map-js-advisory
Oct 6, 2026
Merged

htcom-code merged 1 commit into
mainfrom
fix/source-map-js-advisory

Conversation

@htcom-code

Copy link
Copy Markdown
Owner

Why

source-map-js below 1.2.2 has a high-severity advisory, GHSA-68fv-2mgg-jv7q: a crafted indexed source map can stall the event loop through its section offsets. It was the only finding left in npm audit --omit=dev. That's because @tailwindcss/vite is declared in dependencies and pulls it in through @tailwindcss/node. Raised during the #69 review as a separate change.

What

  • source-map-js 1.2.1 -> 1.2.2, lockfile only. package.json is unchanged.
  • Every consumer asks for ^1.2.1: @tailwindcss/node, postcss, css-tree and magicast. So npm update source-map-js moves the single deduped copy and no parent package changes. The lock diff is that one entry, three lines.

Impact

  • source-map-js runs only at build and test time. The browser bundle is byte-identical to main, with the same asset hashes (index-B6lxbKS-.js, index-_pgovk26.css).

Verification

  • npm audit --omit=dev: 1 high -> 0
  • npm audit (all): 16 -> 15. The rest come through dev-only paths under shadcn and are out of scope here.
  • npm run lint: exit 0, the same 7 warnings as main
  • npm run build: passes
  • npm test: 17 files, 199 tests pass

source-map-js below 1.2.2 lets a crafted indexed source map stall the
event loop through its section offsets (high). It is the only finding
left in npm audit --omit=dev, because @tailwindcss/vite is declared in
dependencies and pulls it in through @tailwindcss/node.

- Every consumer (@tailwindcss/node, postcss, css-tree, magicast) asks
  for ^1.2.1, so npm update moves the single deduped copy to 1.2.2 and
  no parent changes. The lock diff is that one entry, three lines
- It runs only at build and test time; the browser bundle is
  byte-identical to main (same asset hashes)
- npm audit --omit=dev: 1 high -> 0. Full audit: 16 -> 15, the rest
  are dev-only paths under shadcn and are out of scope here
- Gates: lint clean (same 7 warnings as main), build passes, 199 tests
  pass

Tags: #deps #security

Co-Authored-By: htjulia <htjulia1@gmail.com>
@htcom-code
htcom-code merged commit 5de8b6f into main Oct 6, 2026
4 checks passed
@htcom-code
htcom-code deleted the fix/source-map-js-advisory branch October 6, 2026 02:45
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