Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-23346

This affects the package html-parse-stringify before 2.0.1; all versions of package html-parse-stringify2. Sending certain input could cause one of the regular expressions that is used for parsing to backtrack, freezing the process.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-23346
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:40 UTC · Revision 1

Source evidence

CVE-2021-23346

core-osv · Original source

Published 4 Mar 2021, 17:15 UTC

This affects the package html-parse-stringify before 2.0.1; all versions of package html-parse-stringify2. Sending certain input could cause one of the regular expressions that is used for parsing to backtrack, freezing the process.

osv:CVE-2021-23346
Complete source record
{
  "id": "9169ae58c30412af384242735943cadcd13471ca25979c3677ad6b5167fdb07a",
  "url": "https://osv.dev/vulnerability/CVE-2021-23346",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-23346",
    "summary": "This affects the package html-parse-stringify before 2.0.1; all versions of package html-parse-stringify2. Sending certain input could cause one of the regular expressions that is used for parsing to backtrack, freezing the process.",
    "evidence": "osv:CVE-2021-23346",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-23346",
      "aliases": [
        "CVE-2021-23346",
        "GHSA-545q-3fg6-48m7"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/henrikjoreteg/html-parse-stringify",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "317b7f07bb0189074e39a05dd0eb06e85befff8c"
                },
                {
                  "fixed": "c7274a48e59c92b2b7e906fedf9065159e73fe12"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:html-parse-stringify_project:html-parse-stringify:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.0.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c7274a48e59c92b2b7e906fedf9065159e73fe12"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.0.0",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23346.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:32.804648021Z",
      "provider": "osv",
      "references": [
        "https://github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2",
        "https://github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2",
        "https://github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12",
        "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633",
        "https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306",
        "https://snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-23346",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385549,
  "published_at": "2021-03-04T17:15:13.7+00:00"
}