CVE-2025-25977 Details
Description
An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.
A prototype pollution vulnerability has been identified in Canvg version 4.0.2. This issue allows attackers to execute arbitrary code by manipulating the input to the 'StyleElement' constructor, which can lead to injecting or altering properties within the global prototype chain. Such exploitation could facilitate other injection-based attacks, especially if the library interacts with sensitive Node.js APIs like 'exec' or 'eval', potentially allowing execution of arbitrary commands within the application's context.
Users can upgrade to Canvg version 4.0.3 or version 3.0.11 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/canvg/canvg/issues/1749 | CISA-ADP | ExploitIssue Tracking |
| https://github.com/canvg/canvg/issues/1749 | [email protected] | ExploitIssue Tracking |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| canvg canvg | < 3.0.11 >= 4.0.0, < 4.0.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 25, 2025 | Initial Analysis | [email protected] |
| Mar 12, 2025 | CVE Modified | CISA-ADP |
| Mar 10, 2025 | New CVE Received | [email protected] |