picomatch@2.0.4

Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.

  • latest version

    4.0.4

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the picomatch package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Prototype Pollution

    Affected versions of this package are vulnerable to Prototype Pollution via the POSIX_REGEX_SOURCE object. An attacker can cause unintended files to be matched by injecting specially crafted POSIX bracket expressions that reference inherited method names, leading to incorrect glob matching behavior. This can result in security-relevant logic errors in applications that rely on glob matching for filtering, validation, or access control.

    How to fix Prototype Pollution?

    Upgrade picomatch to version 2.3.2, 3.0.2, 4.0.4 or higher.

    <2.3.2>=3.0.0 <3.0.2>=4.0.0 <4.0.4
    • H
    Regular Expression Denial of Service (ReDoS)

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when processing crafted extglob patterns. An attacker can cause excessive CPU consumption and block the event loop by supplying crafted extglob patterns that trigger catastrophic backtracking in regular expressions.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade picomatch to version 2.3.2, 3.0.2, 4.0.4 or higher.

    <2.3.2>=3.0.0 <3.0.2>=4.0.0 <4.0.4