
8 November 2026 · 2 min read
Fixing an Advisory That Can't Be Reached Anyway
A push to this site's repository came back with a note about a new vulnerability: a medium-severity advisory (quadratic complexity in selector parsing, which can exhaust CPU) in postcss-selector-parser. The first useful question was whether it could actually hurt me.
Reachability first#
The package is a development-scope dependency, pulled in by @tailwindcss/typography. At build time it parses CSS selectors from my own source files. There is no path by which a visitor, or anyone else, hands it a hostile selector. So the honest assessment was: not exploitable here.
Why fix it anyway#
Two reasons. A dependency report with a permanent known item teaches you to ignore the report, and the next alert is the one that might matter. And the fix was cheap, as long as it was done carefully.
The catch#
The parser version in my tree was 6.0.10, brought in by typography, and the advisory's first patched version is 7.1.6, a different major. Running the blunt npm audit fix --force would have proposed downgrading typography to a much older release, which is the wrong trade for a hole nobody can reach.
A narrow override#
Instead I added an npm override scoped to the one package that needs it:
@tailwindcss/typographygetspostcss-selector-parser7.1.6;- nothing else in the tree is touched.
Scoping matters. A global override would silently change every other consumer of the parser, which is how a small fix turns into a mystery build failure two weeks later.
Proving nothing else moved#
Because a major version jumped underneath a plugin, I wanted evidence rather than hope:
npm lsshows the override applied to the one dependency path;- a clean
npm cisucceeds, which also catches lockfile mistakes that a plainnpm installforgives; npm auditreports zero vulnerabilities;- the production build completes, and the visual regression job in CI covers the prose styling that typography produces.
The exit#
An override is debt. The pull request says when to remove it: once typography ships a dependency range that already includes the patched parser. Until then it is a single, documented line in package.json.
Not every advisory deserves an emergency, but most deserve an answer, and "unreachable, fixed narrowly, verified" is a perfectly good one.