CVE-2025-25977

CRITICAL
9.8
CVSS 3.1
Share

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch Released
Mar 31, 2026 - 21:13 nvd
Patch available
Analysis Generated
Mar 12, 2026 - 19:50 vuln.today
PoC Detected
Mar 25, 2025 - 16:53 vuln.today
Public exploit code
CVE Published
Mar 10, 2025 - 16:15 nvd
CRITICAL 9.8

Description

An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.

Analysis

canvg 4.0.2 is vulnerable to arbitrary code execution through prototype pollution in the StyleElement class constructor. An attacker can exploit this to execute code in environments that process SVG content with canvg. A PoC exists with no patch available.

Technical Context

The constructor of the StyleElement class in canvg does not sanitize properties, enabling prototype pollution (CWE-1321). In Node.js environments, prototype pollution can be chained to achieve remote code execution through polluted properties that influence child_process or similar built-in modules.

Affected Products

canvg 4.0.2

Remediation

Pin canvg to a patched version when available. Validate and sanitize SVG input before processing. Run SVG rendering in an isolated sandbox.

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: +0.4
CVSS: +49
POC: +20

Vendor Status

Share

CVE-2025-25977 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy