---
id: "CVE-2026-114491"
kind: "vulnerability"
aliases: ["CVE-2026-114491"]
title: "pdfmake: SVG image references bypass local file access policy"
severity: "medium"
cvss: 6.9
epss: 0.00255
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["node", "package", "pdfmake", "server-side-rendering"]
not_affected_if: ["no-svg-images", "pdfmake-0.3.12-or-later", "trusted-input-only"]
published_at: "2026-10-21T18:17:27+00:00"
first_seen_at: "2026-10-23T21:57:29+00:00"
updated_at: "2026-10-25T03:38:59+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-114491", "first_seen_at": "2026-10-23T21:57:29+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-114491", "first_seen_at": "2026-10-24T13:15:54+00:00"}]
---

# pdfmake: SVG image references bypass local file access policy

pdfmake 0.3.8 before 0.3.12 does not apply the setLocalAccessPolicy() restriction to images referenced inside SVG content. An attacker who supplies a document definition can point an SVG image href at a blocked local path and get that file's contents embedded in the generated PDF.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed pdfmake version with `npm ls pdfmake` in the project that renders PDFs.
- Search for `setLocalAccessPolicy` in the code to see whether a local access policy is configured at all.
- Check whether document definitions can come from untrusted users, for example `grep -rn "svg" src/` near pdfmake calls.

## Fix

- Upgrade pdfmake to `0.3.12` or later.
- Until upgraded, do not render untrusted document definitions that contain SVG images.

## Timeline

- 2026-10-23T21:57:29+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-114491
- 2026-10-24T13:15:54+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2026-114491

## From the sources

pdfmake 0.3.8 before 0.3.12 fails to apply the setLocalAccessPolicy() restriction to images referenced inside SVG content, allowing attackers to read blocked local files. Attackers supplying a document definition can add an SVG image href pointing to a local path, embedding restricted file contents in the generated PDF.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
