GHSA-x4hg-hfwf-p9mw: @asymmetric effort/nogginlessdom Denial of Service Vulnerability

MODERATE
CWE-1333
Published
Advisory Summary

GHSA-x4hg-hfwf-p9mw is a MODERATE denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting @asymmetric effort/nogginlessdom libraries in the npm ecosystem. The issue involves @asymmetric-effort/nogginlessdom vulnerable to redos via user-controlled regex in htmlinputelement pattern validation. Remediation is available by upgrading affected packages to version 0.0.22.

GHSA-x4hg-hfwf-p9mw at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-x4hg-hfwf-p9mw
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product @asymmetric effort/nogginlessdom
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-x4hg-hfwf-p9mw

To remediate this vulnerability, upgrade all affected @asymmetric effort/nogginlessdom dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@asymmetric-effort/nogginlessdom fixed: 0.0.22
npm install @asymmetric-effort/nogginlessdom@0.0.22
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @asymmetric-effort/nogginlessdom

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-x4hg-hfwf-p9mw, inspect your project dependencies using npm:

npm ls @asymmetric-effort/nogginlessdom

Analyze the terminal output to locate any version of @asymmetric effort/nogginlessdom in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.22), your application is affected.

Note: The npm ls @asymmetric-effort/nogginlessdom command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In @asymmetric effort/nogginlessdom, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The `HTMLInputElement.checkValidity()` method constructed a `RegExp` directly from the user-controlled `pattern` property without any sanitization or timeout protection. This allowed an attacker to inject a regex with catastrophic backtracking, freezing the event loop. ## Fix Fixed in commit https://github.com/asymmetric-effort/NogginLessDom/commit/25a3cbac665fae5663f8b71c073b80c3152dbe7b on `main`. Added: - Pattern length limit (1024 characters) - Nested quantifier detection (`hasNestedQuantifiers`) that rejects patterns like `(a+)+` before constructing the regex - Patterns exceeding limits are treated as non-matching (safe default)

GHSA-x4hg-hfwf-p9mw Affected @asymmetric effort/nogginlessdom Versions

1 component(s)
Fixed Versions:
0.0.22
Product / Package Ecosystem Affected Versions Fixed Version
@asymmetric-effort/nogginlessdom
npm
< 0.0.22
0.0.22

References

Frequently Asked Questions

What is GHSA-x4hg-hfwf-p9mw?
GHSA-x4hg-hfwf-p9mw is a security vulnerability in @asymmetric effort/nogginlessdom involving @asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation under CWE-1333: Inefficient Regular Expression Complexity.
Which @asymmetric effort/nogginlessdom versions are affected?
Affected versions include releases prior to 0.0.22 across affected packages: @asymmetric-effort/nogginlessdom.
What version fixes GHSA-x4hg-hfwf-p9mw?
Upgrading to 0.0.22 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @asymmetric-effort/nogginlessdom affected?
Yes, @asymmetric-effort/nogginlessdom is affected in releases prior to 0.0.22. Upgrade your dependency to 0.0.22 or later.
What CWE is associated with GHSA-x4hg-hfwf-p9mw?
GHSA-x4hg-hfwf-p9mw is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for GHSA-x4hg-hfwf-p9mw?
Run the dependency tree command: 'npm ls @asymmetric-effort/nogginlessdom'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x4hg-hfwf-p9mw",
  "modified" : "2026-07-02T20:20:04Z",
  "published" : "2026-07-02T20:20:04Z",
  "aliases" : [ ],
  "summary" : "@asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation",
  "details" : "## Summary\n\nThe `HTMLInputElement.checkValidity()` method constructed a `RegExp` directly from the user-controlled `pattern` property without any sanitization or timeout protection. This allowed an attacker to inject a regex with catastrophic backtracking, freezing the event loop.\n\n## Fix\n\nFixed in commit https://github.com/asymmetric-effort/NogginLessDom/commit/25a3cbac665fae5663f8b71c073b80c3152dbe7b on `main`. Added:\n- Pattern length limit (1024 characters)\n- Nested quantifier detection (`hasNestedQuantifiers`) that rejects patterns like `(a+)+` before constructing the regex\n- Patterns exceeding limits are treated as non-matching (safe default)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@asymmetric-effort/nogginlessdom"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.22"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.0.21"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/asymmetric-effort/NogginLessDom/security/advisories/GHSA-x4hg-hfwf-p9mw"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/asymmetric-effort/NogginLessDom/commit/25a3cbac665fae5663f8b71c073b80c3152dbe7b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/asymmetric-effort/NogginLessDom"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-02T20:20:04Z",
    "nvd_published_at" : null
  }
}