org.mvnpm:picomatch@2.3.0

  • latest version

    4.0.7

  • first published

    2 years ago

  • latest version published

    3 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm: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
    Incorrect Regular Expression

    Affected versions of this package are vulnerable to Incorrect Regular Expression via the globstar function in lib/parse.js, where globstar (**) patterns are compiled without the dotAll flag, causing the generated regular expression to use . which does not match line terminator characters. An attacker who controls file names, object keys, or archive entry names can embed newline characters in those names to evade **-based deny patterns, causing excluded resources to be included and exposed.

    How to fix Incorrect Regular Expression?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • 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 org.mvnpm:picomatch to version 2.3.2, 4.0.4 or higher.

    [,2.3.2)[4.0.2,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 org.mvnpm:picomatch to version 2.3.2, 4.0.4 or higher.

    [,2.3.2)[4.0.2,4.0.4)