CVE-2025-25977
Canvg vulnerability
An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Canvg. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Canvg runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/canvg/canvg/issues/1749 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2025-25977
- github.com/canvg/canvg/blob/937668eced93e0335c67a255d0d2277ea708b2cb/src/Document/StyleEle
- github.com/canvg/canvg/commit/c3743e6345f3e01aefdcdd412c3f26494f4b5d7d
- github.com/advisories/GHSA-v2mw-5mch-w8c5
- nvd.nist.gov/vuln/detail/CVE-2025-25977
- cve.org/CVERecord?id=CVE-2025-25977
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.