Vulnerability library
Security checkMarch 17, 2025

canvg Prototype Pollution vulnerability

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmcanvg

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

An issue in canvg prior to v.4.0.3 and v3.0.11 can lead to prototype pollution via the Constructor of the class StyleElement.

Recommendation

Update the canvg package to the latest compatible version. Followings are version details:

  • Affected version(s): **< 3.0.11 >= 4.0.0, < 4.0.3**
  • Patched version(s): **3.0.11 4.0.3**

References

Could your website be exposed too?

SmartScanner can check your website for canvg Prototype Pollution vulnerability and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 17, 2025