CVE-2026-82868 @pdfme/schemas before 5.5.9 Cross-Site Scripting via SVG

Medium 5.3 Published Updated

Attackers can execute arbitrary JavaScript in users' browsers by injecting malicious SVG content into PDF templates using the @pdfme/schemas library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-82868?

CVE-2026-82868 is a medium-severity cross-site scripting vulnerability in pdfme schemas, published on 31 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2026-82868?

2 open source packages ship an affected version, including @pdfme/schemas.

PackageAffectedFixed in
@pdfme/schemas npmAll versions5.5.9
@pdfme/schemas npmAll versions5.5.9

How do I fix CVE-2026-82868?

Upgrade @pdfme/schemas to 5.5.9 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-82868 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-82868 exists.

Sources

Also known as GHSA-87v3-4cfp-cm76, GHSA-9f44-gwhq-mr2g.

Is CVE-2026-82868 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free