CVE-2026-82868

@pdfme/schemas before 5.5.9 Cross-Site Scripting via SVG

Published Aug 31, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

@pdfme/schemas before version 5.5.9 renders user‑supplied SVG directly into innerHTML without sanitization, enabling cross‑site scripting attacks. An attacker can embed malicious scripts, event handlers, or foreignObject elements in SVG files so that arbitrary JavaScript executes when a user views or interacts with a template. This flaw can lead to execution of code in the victim’s browser, potentially exposing data or allowing further attacks on the host system.

Affected Systems

The vulnerability affects the pdfme:schemas package, specifically releases older than 5.5.9. Users of this Node.js library as part of their PDF generation workflows are impacted, regardless of operating system or deployment environment, as the flaw resides in the application code rather than the host platform.

Risk and Exploitability

The CVSS v3 rating of 5.3 classifies the risk as medium, but the flaw is exploitable in any context where a user can load or view a template processed by pdfme/schemas. The EPSS score is not available, so the exact exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, indicating no confirmed widespread exploit as of this analysis. Attackers would typically need to trick a user into opening a malicious template or compromise the template creation process to insert the payload.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pdfme/schemas to version 5.5.9 or later to eliminate the unescaped SVG rendering, or apply the vendor’s patch if one is released.
  • If an upgrade is delayed, sanitize any SVG content before passing it to pdfme/schemas by stripping script tags, event attributes, and foreignObject elements, or by removing the innerHTML usage entirely.
  • Restrict the use of pdfme/schemas to trusted data sources and enforce strict input validation to ensure only validated SVGs reach the rendering engine.

Generated by OpenCVE AI on August 31, 2026 at 10:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Pdfme
Pdfme schemas
Vendors & Products Pdfme
Pdfme schemas
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title @pdfme/schemas before 5.5.9 Cross-Site Scripting via SVG
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:25 PM
Reserved
Aug 31, 2026, 8:37 AM
Status
Deferred
Published
Aug 31, 2026, 9:17 AM
Modified
Oct 8, 2026, 4:17 PM