Security audit: braces (GHSA-vfj7-8cjw-p6xm) through the Tailwind CLI's file watcher #708
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#708
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The security audit went red on
0df9c342e(run 641):npm auditreports GHSA-vfj7-8cjw-p6xm, a stack-exhaustion denial of service inbracesthrough deeply nested patterns, high severity. It reaches the build through@tailwindcss/cli4.3.3 →@parcel/watcher2.5.1 →micromatch→braces.Node is only used to build the committed stylesheet and icons; nothing of it runs in the application. The watcher is only used by
watch:css. So the exposure is a developer's machine and CI, not an instance. The audit is right to be red all the same.Fix
@parcel/watcher2.6.0 no longer depends onmicromatch(it usespicomatch).npm audit fixreaches it by downgrading@tailwindcss/cliandtailwindcssto 4.3.0, which could change the compiled stylesheet. Instead, anoverridesentry inpackage.jsonpins@parcel/watcherto ^2.6.0 and leaves Tailwind at 4.3.3.npm auditthen finds nothing, andnpm run build:cssgives the committed stylesheet byte for byte.Drop the override once
@tailwindcss/clidepends on a fixed watcher itself.