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.
Published: 2026-08-31
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting via SVG content rendering
Action: Apply patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 31 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
First Time appeared Pdfme
Pdfme schemas
Vendors & Products Pdfme
Pdfme schemas

Mon, 31 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 31 Aug 2026 09:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-31T10:50:12.466Z

Reserved: 2026-08-31T08:37:53.170Z

Link: CVE-2026-82868

cve-icon Vulnrichment

Updated: 2026-08-31T10:50:04.674Z

cve-icon NVD

Status : Deferred

Published: 2026-08-31T09:17:07.553

Modified: 2026-09-10T15:53:23.707

Link: CVE-2026-82868

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T11:18:35Z

Weaknesses
  • CWE-79

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