Skip to content

← Public intelligence

npm package

nth-check

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.5npmAmendedPublished

    Inefficient Regular Expression Complexity in nth-check

    CVE-2021-3803 · GHSA-rp65-9cf3-cjxr

    Affected
    • npm nth-check < 2.0.1
    Fixed in
    2.0.1· Vendor fix available
    Issue
    There is a Regular Expression Denial of Service (ReDoS) vulnerability in nth-check that causes a denial of service when parsing crafted invalid CSS nth-checks. The ReDoS vulnerabilities of the regex are mainly due to the sub-pattern \s(?:([+-]?)\s(\d+))? with quantified overlapping adjacency and can be exploited with the following code. Proof of Concept The Output

    Recommended action: Upgrade to 2.0.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →