An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.
Priority HIGH 82CWE-1321Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub.
Summary
An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00713 53rd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed canvg (npm): 4.0.3, 3.0.11
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | canvg (npm) | 4.0.0 to before 4.0.3 | 4.0.3 | Patch available | GHSA-v2mw-5mch-w8c5 |
| — | canvg (npm) | before 3.0.11 | 3.0.11 | Patch available | GHSA-v2mw-5mch-w8c5 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- canvg (npm) Vendor— Affected 4.0.0 to before 4.0.3 Fixed in 4.0.3 Patch available GHSA-v2mw-5mch-w8c5
- canvg (npm) Vendor— Affected before 3.0.11 Fixed in 3.0.11 Patch available GHSA-v2mw-5mch-w8c5
Remediation
- Fix · GHSA-v2mw-5mch-w8c5 canvg (npm) Fixed in 4.0.3 Advisory →
- Fix · GHSA-v2mw-5mch-w8c5 canvg (npm) Fixed in 3.0.11 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Advanced Cluster Security 4
Timeline
- 2026-10-02 Threatist record created from CVE-2025-25977
- 2026-10-03 Alias added: GHSA-v2mw-5mch-w8c5
References
Sources
- CVE-2025-25977 · CVE Program
- CVE-2025-25977 · NVD
- FIRST EPSS
- GHSA-v2mw-5mch-w8c5 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-25977 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences