Vulnerability library
Security checkMarch 18, 2026

Cross-Site Scripting (XSS) via SVG Schema innerHTML Injection in @pdfme/schemas

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

Medium severitynpm@pdfme/schemas

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The SVG schema plugin in @pdfme/schemas renders user-supplied SVG content using container.innerHTML = value without any sanitization, enabling arbitrary JavaScript execution in the user’s browser.

Recommendation

Update the @pdfme/schemas package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 5.5.8
  • Patched version(s): 5.5.9

References

Could your website be exposed too?

SmartScanner can check your website for Cross-Site Scripting (XSS) via SVG Schema innerHTML Injection in @pdfme/schemas and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 18, 2026