Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TailwindCSS depends on an outdated version of postcss-load-config #11081

Closed
dykatz opened this issue Apr 24, 2023 · 10 comments
Closed

TailwindCSS depends on an outdated version of postcss-load-config #11081

dykatz opened this issue Apr 24, 2023 · 10 comments
Assignees

Comments

@dykatz
Copy link

dykatz commented Apr 24, 2023

TailwindCSS depends on yaml indirectly through postcss-load-config. This CVE was released earlier today, and was patched in [email protected]. It can be used by [email protected], but tailwind depends on postcss-load-config@^3.1.4. This is causing our static analysis tools to yell at us.

@RicardoAALL
Copy link

Yes, same here. Don't know if this is helpful but here is the output from npm audit

# npm audit report

yaml  <2.2.2
Severity: moderate
Uncaught Exception in yaml - https://github.com/advisories/GHSA-f9xv-q969-pqx4
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/yaml
  postcss-load-config  3.1.0 - 3.1.4
  Depends on vulnerable versions of yaml
  node_modules/postcss-load-config
    tailwindcss  <=0.0.0-oxide-insiders.ff2c25f || >=2.2.3
    Depends on vulnerable versions of postcss-load-config
    node_modules/tailwindcss

3 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force 

@zackfencedev
Copy link

zackfencedev commented Apr 24, 2023

Can confirm issue has started today for me as well on all my builds. Attempting to fix downgrades me to version 2.2.2.

@joaoguidev
Copy link

Same here.

@Arielle-Web
Copy link

same problem for me

@semy
Copy link

semy commented Apr 25, 2023

Same here

@alex-r-redfern
Copy link

Ditto. There is a patch available on the main branch of postcss-load-config if that helps? (see the link in this issue thread: postcss/postcss-load-config#242)

@marketsystems
Copy link

yeah the error is coming from tailwind, you need to update the postcss-load-config dependency which has already been patched to use yaml 2.2.2

@thecb4
Copy link

thecb4 commented Apr 25, 2023

Downgrading didn't help me. And using with SvelteKit to produce a static page is blocked. None of the browsers will load the offending code in a production environment.

@yp717
Copy link

yp717 commented Apr 25, 2023

This is still an issue on our end too!

@reinink
Copy link
Member

reinink commented Apr 25, 2023

Hey folks!

So the issue here, as suggested, is that we're still using an older version of postcss-load-config. The reason for this is because we still supported Node.js v12, meaning we could not upgrade it to a newer version. While technically this CVE is not really relevant to a build-time project like Tailwind, it does cause warnings when using tools like npm audit.

Fixing this means updating our minimum Node version requirement, which is something we were hoping to avoid until the next major version of the project. However, this issue has forced our hand, and you'll see in #11089 that we've now dropped support for Node.js v12 and have updated any dependencies that were locked to older versions to their latest releases.

These changes eliminate the postcss-load-config security warning but do make Node.js v14 the new minimum version requirement for Tailwind CSS.

We've just published a new release that includes this fix — v3.3.2. Here's how to upgrade:

npm install tailwindcss@latest

We've tested this already using npm audit, and it appears to resolve this problem. Please let us know if you bump into any subsequent issues, as we updated a bunch of dependencies as part of this change.

@dykatz Thanks so much for reporting this issue! 🙏

@reinink reinink closed this as completed Apr 25, 2023
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

No branches or pull requests