Prototype pollution in canvg - CVE-2025-25977

 

Prototype pollution in canvg - CVE-2025-25977

Published: April 30, 2025 / Updated: July 31, 2025


Vulnerability identifier: #VU108091
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-25977
CWE-ID: CWE-1321
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary JavaScript code.

The vulnerability exists due to improper input validation. A remote attacker can execute arbitrary code via the Constructor of the class StyleElement.


Affected software

canvg
DB2 Data Management Console
Splunk Enterprise Security (ES)
IBM Observability with Instana

How to mitigate CVE-2025-25977

Install updates from vendor's website.

canvg - update to 4.0.3
DB2 Data Management Console - update to 3.1.13.2
Splunk Enterprise Security (ES) - addressed in versions 7.3.4, 8.1.0
IBM Observability with Instana - update to 1.0.293

External References

Related Security Bulletins