Description
@pdfme/schemas before 5.5.9 contains a cross-site scripting vulnerability in the SVG schema plugin that renders user-supplied SVG content directly to innerHTML without sanitization. Attackers can inject malicious SVG with embedded scripts, event handlers, or foreignObject elements to execute arbitrary JavaScript in users' browsers when viewing or filling templates.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pdfme | schemas | < 5.5.9 | 5.5.9 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @pdfme/schemas | < 5.5.9 | 5.5.9 | GHSA-87v3-4cfp-cm76 |
References
- GitHub Security Advisory (GHSA-87v3-4cfp-cm76) vendor-advisory
- VulnCheck Advisory: @pdfme/schemas before 5.5.9 Cross-Site Scripting via SVG third-party-advisory