Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. html-parse-stringify2
  4. ›
  5. CVE-2021-23346

CVE-2021-23346: Regular expression denial of service (ReDoS)

March 18, 2021

This affects the package html-parse-stringify ; 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.

References

  • github.com/HenrikJoreteg/html-parse-stringify/blob/master/lib/parse.js%23L2
  • github.com/HenrikJoreteg/html-parse-stringify/commit/c7274a48e59c92b2b7e906fedf9065159e73fe12
  • github.com/HenrikJoreteg/html-parse-stringify/releases/tag/v2.0.1
  • github.com/advisories/GHSA-545q-3fg6-48m7
  • github.com/rayd/html-parse-stringify2/blob/master/lib/parse.js%23L2
  • nvd.nist.gov/vuln/detail/CVE-2021-23346
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1080633
  • snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY-1079306
  • snyk.io/vuln/SNYK-JS-HTMLPARSESTRINGIFY2-1079307

Code Behaviors & Features

Detect and mitigate CVE-2021-23346 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.0.1

Solution

Unfortunately, there is no solution available yet.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Source file

npm/html-parse-stringify2/CVE-2021-23346.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.