CVE-2022-37620Terser Html-minifier-terser
High 7.5 No auth needed
Follow: this CVE · Terser · Terser Html-minifier-terser We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Oct 31, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.
What to do
- Apply the vendor's security update for Html-minifier-terser.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | html-minifier |
≤ 4.0.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-pfq8-rq6v-vf5m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| terser | html-minifier-terser | ≤ 7.2.0 |
| kangax | html-minifier | ≤ 4.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Product
- github.com Issue Tracking Mitigation Third Party Advisory
- security.snyk.io