Skip to content

@tailwindcss/typography pins a vulnerable postcss-selector-parser (GHSA-rj75-hqrm-r3gf) #91

Open

Description

@ajanraj

Problem

bun audit reports a moderate advisory:

postcss-selector-parser@6.0.10
  @tailwindcss/typography > postcss-selector-parser
  moderate: PostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion (<7.1.6) - https://github.com/advisories/GHSA-rj75-hqrm-r3gf

@tailwindcss/typography 0.5.20, the latest release, pins postcss-selector-parser to exactly 6.0.10, so a normal update can't pick up the fix in 7.1.6.

Present on main (17ade4e) and #87.

Impact

Low. The parser only runs while Tailwind compiles the app's own CSS (@plugin "@tailwindcss/typography" in src/styles.css). App code never imports it, it isn't in the build output, and no user input reaches it. CI's bun audit --audit-level=high doesn't fail on it.

Possible fixes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions