Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker controls template SVG content
-
DeliveryVictim loads template in pdfme Viewer or Form
-
ExploitUnsanitized SVG assigned to container.innerHTML
-
ExecutionEmbedded JavaScript payload executes in browser
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
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
Affected Packages
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
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
Network-delivered XSS requiring user interaction to render the template; scope changes to browser context enabling session access beyond the component.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Cross-site scripting in @pdfme/schemas before 5.5.9 allows any party who can supply a malicious template to execute arbi
Cross-site scripting in @pdfme/schemas before 5.5.10 allows an attacker who can supply the Designer's options.labels con
EUVD-2026-68403
GHSA-9f44-gwhq-mr2g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB