CVE Vulnerabilities

CVE-2025-25977

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Published: Mar 10, 2025 | Modified: Mar 25, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Ubuntu

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

Weakness

The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.

Affected Software

Name Vendor Start Version End Version
Canvg Canvg * 3.0.11 (excluding)
Canvg Canvg 4.0.0 (including) 4.0.3 (excluding)

Potential Mitigations

References