Skip to content

Critical Vulnerability in parse-url #36018

Closed as not planned
Closed as not planned

Description

@akshits96

Preliminary Checks

Description

A new critical vulnerability in parse-url pulled in by gatsby:
https://nvd.nist.gov/vuln/detail/CVE-2022-2216
https://huntr.dev/bounties/505a3d39-2723-4a06-b1f7-9b2d133c92e1/

Reproduction Link

https://github.com/IonicaBizau/parse-url

Steps to Reproduce

A new critical vulnerability in parse-url pulled in by gatsby:
https://nvd.nist.gov/vuln/detail/CVE-2022-2216
https://huntr.dev/bounties/505a3d39-2723-4a06-b1f7-9b2d133c92e1/

Expected Result

either its not applicable/false positive or library version needs to be bumped

Actual Result

vulnerable version is pulled in

Environment

NA

Config Flags

No response

Activity

  1. added
    type: bugAn issue or pull request relating to a bug in Gatsby
    on Jun 30, 2022
  2. added
    status: triage neededIssue or pull request that need to be triaged and assigned to a reviewer
    on Jun 30, 2022
  3. removed
    status: triage neededIssue or pull request that need to be triaged and assigned to a reviewer
    on Jun 30, 2022
  4. LekoArts commented on Jun 30, 2022

    @LekoArts
    Contributor

    Hi, thanks for the issue!

    While those audit messages might seem scary they are almost always irrelevant in the context of Gatsby as it's a build tool. So there is nothing to "fix" as the warning is not relevant.

    Gatsby creates static assets and runs everything at build time and not during runtime. npm audit is designed for runtime / Node apps so it flags issues that can occur there. This means that almost every "vulnerability" report we receive are false positives. While in principle Gatsby can also have vulnerabilities you need to make sure that it's relevant to Gatsby before reporting it. For example a "Regex DDOS attack" can never be a real vulnerability for a development-time tool. If you want to override/update a transitive dependency you can use yarn resolutions.

    You can also read npm audit: Broken by Design to learn more about this.

    If you know that a vulnerability affects Gatsby because you understand what the vulnerability is, please report it through our security document. Thanks!

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

    type: bugAn issue or pull request relating to a bug in Gatsby

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions