jspdf

npm

Is jspdf safe to use?

The latest brin safety scan flagged jspdf v4.0.0 with risk indicators that warrant review. 8 known CVE vulnerabilities. Trust score: 65/100. Review the findings below before use. This is an automated assessment and may contain errors.

Install (safety-checked)

jspdf Has Warnings

Warnings detected due to potential concerns

warning
CVEs

8

Threats

0

Install Scripts

0

Risk Indicators

  • Can spawn child processes

jspdf CVE Vulnerabilities (8)

jsPDF has Shared State Race Condition in addJS Plugin

Fixed in: 4.1.0

jsPDF Vulnerable to Stored XMP Metadata Injection (Spoofing & Integrity Violation)

Fixed in: 4.1.0

jsPDF Vulnerable to Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder

Fixed in: 4.1.0

brin Recommendations

  • This package has warnings detected. Evaluate the specific concerns before proceeding.
  • Update to a patched version to address 2 high-severity CVEs.

Install with brin add jspdf to automatically apply these checks before installation.

This is an automated, point-in-time assessment and may contain errors. Findings are risk indicators, not confirmed threats. Security posture may change over time. Maintainers can dispute findings via the brin review process.

jspdf Capabilities & Permissions

What jspdf can access when installed. Review these capabilities before using with AI agents like Cursor, Claude Code, or Codex.

Network Access

This package makes network requests.

cdnjs.cloudflare.comdeveloper.mozilla.orgeligrey.comen.wikipedia.orggithub.comhansmuller-flex.blogspot.comjspdf.default.namespaceurimgran.blogspot.com]opensource.orgrawgit.com+11 more
Protocols: http, https

Filesystem Access

Reads and writes to the filesystem.

Process Spawning

This package can spawn child processes.

AGENTS.md for jspdf

Good instructions lead to good results. brin adds jspdf documentation to your AGENTS.md so your agent knows how to use it properly—improving both safety and performance.

brin init

Vercel's research: 100% accuracy with AGENTS.md vs 53% without →

jspdf Documentation & Source Code

For the full jspdf README, API documentation, and source code, visit the official package registry.

Frequently asked questions about jspdf safety

Weekly Downloads

8.7M

Version

4.0.0

License

MIT

Other Versions

Last Scanned

Feb 1, 2026

Trust Score

65/100·Legitimacy signals, not safety

CVEs (8)

CVE-2026-24040

jsPDF has Shared State Race Condition in addJS Plugin

Fixed in: 4.1.0

CVE-2026-24043

jsPDF Vulnerable to Stored XMP Metadata Injection (Spoofing & Integrity Violation)

Fixed in: 4.1.0

CVE-2026-24133

jsPDF Vulnerable to Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder

Fixed in: 4.1.0

CVE-2026-24737

jsPDF has PDF Injection in AcroFormChoiceField that allows Arbitrary JavaScript Execution

Fixed in: 4.1.0

GHSA-95fx-jjr5-f39c

jsPDF Vulnerable to Denial of Service (DoS) via Unvalidated BMP Dimensions in BMPDecoder

Fixed in: 4.1.0

GHSA-cjw8-79x6-5cj4

jsPDF has Shared State Race Condition in addJS Plugin

Fixed in: 4.1.0

GHSA-pqxr-3g65-p328

jsPDF has PDF Injection in AcroFormChoiceField that allows Arbitrary JavaScript Execution

Fixed in: 4.1.0

GHSA-vm32-vv63-w422

jsPDF Vulnerable to Stored XMP Metadata Injection (Spoofing & Integrity Violation)

Fixed in: 4.1.0

Capabilities

Network

Connects to: cdnjs.cloudflare.com, developer.mozilla.org, eligrey.com...

Filesystem

Reads & Writes files

Process

Spawns child processes

Is jspdf Safe? | npm Safety Scan - brin