Skip to content

[BUG] Back-port to v6 the fix for Regular Expression Denial of Service #577

Closed
@joshuanapoli

Description

@joshuanapoli

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

  • Current versions of babel depend on semver@^6.3.0. This version has "Vulnerable to Regular Expression Denial of Service " CVE-2022-25883.
  • The babel team does not want to upgrade to the fixed version semver@^7.5.2, because it would be a breaking change (see [Bug]: [Security][helper-compilation-targets] Dependency semver version has vulnerability babel/babel#15720).
  • The babel team asserts that the "vulnerability" isn't relevant to babel. Unfortunately, this still leaves a burden on all dependent projects to analyze the situation. Is "ReDOS" relevant to me? Am I using vulnerable "semver" outside of babel? These aren't necessarily easy to answer.

Expected Behavior

Would you mind back-porting ReDOS fix to version 6? :-)

Steps To Reproduce

In a project that depends on babel v7:

  • npm audit shows a CVE-2022-25883 vulnerability because of semver
  • GitHub Security Alerts also show the vulnerability because of semver

Environment

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds an initial review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions