Skip to content

react-scripts is using postcss@^7.0.35 which has security vulnerability #13423

@biaoqiu

Description

@biaoqiu

react-scripts@5.0.1 requires postcss@^7.0.35 via a transitive dependency on resolve-url-loader@4.0.0

I see the latest version of resolve-url-loader is 5.x, and it depends on postcss@8.x. So can we update resolve-url-loader to a non-vulnerable version? Thank you!

Activity

JcPires

JcPires commented on Nov 2, 2023

@JcPires
added a commit that references this issue on Nov 17, 2023
linked a pull request that will close this issue on Nov 17, 2023
Dror-Bar

Dror-Bar commented on Nov 26, 2023

@Dror-Bar

I had to use overrides in my package.json to overcome there errors:

  "overrides": {
    "nth-check": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
    "postcss": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz"
  }

However the dependency should be updated in the main branch

AnaisUrlichs

AnaisUrlichs commented on Feb 7, 2024

@AnaisUrlichs

@Dror-Bar thank you, you are going to be in my video on using Trivy to fix vulnerabilities with this suggestion -- Thank you!!!

HiickFG

HiickFG commented on Jan 7, 2025

@HiickFG

I made this PR: #13778

It involves updating the resolve-url-loader to ^5.x as part of the vulnerability solution.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @JcPires@AnaisUrlichs@Dror-Bar@biaoqiu@HiickFG

      Issue actions

        react-scripts is using postcss@^7.0.35 which has security vulnerability · Issue #13423 · facebook/create-react-app