Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @pdfme/schemas
  4. ›
  5. GHSA-xgx4-2wgv-4jhm

GHSA-xgx4-2wgv-4jhm: PDFME has XSS via Unsanitized i18n Label Injection into innerHTML in multiVariableText propPanel

March 20, 2026

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.

References

  • github.com/advisories/GHSA-xgx4-2wgv-4jhm
  • github.com/pdfme/pdfme
  • github.com/pdfme/pdfme/security/advisories/GHSA-xgx4-2wgv-4jhm

Code Behaviors & Features

Detect and mitigate GHSA-xgx4-2wgv-4jhm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.5.10

Fixed versions

  • 5.5.10

Solution

Upgrade to version 5.5.10 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@pdfme/schemas/GHSA-xgx4-2wgv-4jhm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:19:22 +0000.