CVE-2025-25977
Critical
Description
An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.
SeverityCritical
CVSS9.8
Exploit probability—
ProductCanvg
PublishedMar 10, 2025
First seenMar 10, 2025
Weakness typeCWE-1321Prototype pollution
How to fix
Update
- canvg canvg3.0.11, 4.0.3 or later
- canvg4.0.3, 3.0.11 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| canvg canvg | v < 3.0.11, 4.0.0 ≤ v < 4.0.3 | 3.0.11, 4.0.3 |
| canvgnpm | 4.0.0 ≤ v < 4.0.3, v < 3.0.11 | 4.0.3, 3.0.11 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.