Skip to main content

@pdfme/schemas CVE-2026-82868

| EUVDEUVD-2026-68403 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-31 VulnCheck GHSA-9f44-gwhq-mr2g
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker controls template SVG content
  2. Delivery
    Victim loads template in pdfme Viewer or Form
  3. Exploit
    Unsanitized SVG assigned to container.innerHTML
  4. Execution
    Embedded JavaScript payload executes in browser
  5. Impact
    Attacker harvests session tokens or manipulates DOM

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker control or influence the SVG content value of an SVG-type schema field in a pdfme template - either by having write access to template definitions, or by supplying user-controlled input to a non-readOnly SVG schema field that the application passes directly to the Viewer or Form component. The vulnerable rendering path triggers in Viewer mode for any SVG field and in Form mode for SVG fields with readOnly: true - both are standard, default deployment modes requiring no special configuration. There is no non-default setting required to be vulnerable; any application embedding @pdfme/schemas prior to 5.5.9 that renders SVG schema content is affected. Exploitation is constrained by the user-interaction requirement: a victim must load or view the affected template in a browser context where the pdfme component is active.

Impact

The CVSS 4.0 score of 5.3 (Medium) is calibrated appropriately for stored or template-injected XSS of this class: the user-interaction requirement (UI:P) and per-field limited impact (VC:L/VI:L) constrain the theoretical ceiling. The attack vector is network with no complexity or privilege prerequisites, making the exploitation path technically simple once an attacker influences template content. EPSS data was not supplied in the input, limiting probabilistic exploitation forecasting. No CISA KEV listing confirms active exploitation; however, a functional proof-of-concept is published in the GitHub Security Advisory, meaningfully lowering the barrier to weaponization. The scope change reflected in the CVSS 4.0 vector (SC:L/SI:L) is significant: JavaScript execution escapes the vulnerable component into the surrounding browser context, enabling session theft, credential harvesting, or DOM manipulation on the host application. Any organization embedding pdfme Viewer or Form components in customer-facing or internal tooling should prioritize patching - the low complexity and published PoC make exploitation straightforward for any attacker who can influence template definitions or SVG schema inputs.

Exploit ScenarioDerived

An attacker with the ability to define or modify a pdfme template - via a compromised template-management endpoint, a malicious insider, or an application that accepts user-supplied SVG schema content - crafts a template with a readOnly SVG schema field whose content value includes an onload event handler (e.g., onload='alert(document.domain)'). When any user opens the template in a pdfme Form or Viewer component, the SVG is injected into the DOM via innerHTML and the JavaScript executes in the victim's active browser session. A working proof-of-concept demonstrating this exact flow is published in the GHSA advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAI

Cross-site scripting in @pdfme/schemas before 5.5.9 allows execution of arbitrary JavaScript in users' browsers via unsanitized SVG content rendered directly to innerHTML. The SVG schema plugin's viewer and readOnly form modes assign raw SVG markup to container.innerHTML without stripping script elements, event handler attributes, or foreignObject payloads. A working proof-of-concept is published in the GHSA advisory; no active exploitation has been confirmed in CISA KEV at time of analysis.

RemediationAI

Vendor-released patch: 5.5.9. Upgrade @pdfme/schemas to version 5.5.9 or later as the primary remediation, per GHSA-87v3-4cfp-cm76. If an immediate upgrade is not feasible, three compensating controls are available with noted trade-offs. First, disable or remove SVG schema fields from all templates entirely - this eliminates the attack surface but sacrifices all SVG rendering functionality. Second, sanitize SVG content server-side before it reaches pdfme using a library such as DOMPurify configured for SVG (FORCE_BODY: false, USE_PROFILES: {svg: true, svgFilters: true}) - this adds a dependency that must itself be kept current and correctly configured. Third, restrict template-creation and template-modification permissions to trusted administrators only - this reduces attacker ability to inject payloads but does not protect against compromised admin accounts or applications that pass user-controlled data as SVG inputs. Do not rely on the built-in isValidSVG() function as a security control; it is a well-formedness validator, not a sanitizer. Advisory: https://github.com/pdfme/pdfme/security/advisories/GHSA-87v3-4cfp-cm76.

Affected VersionsENISA

schemas 0 <5.5.9

Affected Packages

npm @pdfme/schemas fix: 5.5.9
euvd schemas fix: 5.5.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in packages/schemas/src/graphics/svg.ts at line 87 of the @pdfme/schemas npm package (CPE: cpe:2.3:a:pdfme:schemas:*:*:*:*:*:*:*:*). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically the use of an innerHTML assignment to render caller-supplied SVG markup. The isValidSVG() validation function (lines 11-37) checks only structural well-formedness - presence of opening/closing svg tags and DOMParser success - but does not sanitize or filter script elements, onload/onerror/onclick event handler attributes, foreignObject HTML containers, or animate/set elements carrying JavaScript callbacks. All of these constructs are syntactically valid SVG, pass the validation gate, and carry executable payloads when inserted via innerHTML.

Know when Schemas gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
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
vuln.today AI 6.1 MEDIUM

Network-delivered XSS requiring user interaction to render the template; scope changes to browser context enabling session access beyond the component.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
CVE Published
Aug 31, 2026 - 10:50 cve.org
MEDIUM 5.3
Patch available
Aug 31, 2026 - 10:16 EUVD

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
specialized npm PDF generation library for developer tooling
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy