Vulnerability library
Security checkMarch 20, 2026

PDFME has XSS via Unsanitized i18n Label Injection into innerHTML in multiVariableText propPanel

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 multiVariableText property panel in @pdfme/schemas constructs HTML via string concatenation and assigns it to innerHTML using unsanitized i18n label values. An attacker who can control label overrides passed through options.labels can inject arbitrary JavaScript that executes in the context of any user who opens the Designer and selects a multiVariableText field with no {variables} in its text.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for PDFME has XSS via Unsanitized i18n Label Injection into innerHTML in multiVariableText propPanel and gives you actionable findings to investigate.

Start a free scan

Related Issues

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