Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-25940 — Proof-of-concept for CVE-2026-25940 demonstrating embedded JavaScript execution via crafted AcroForm radio button appearances in PDF viewers, with Node.js generator and browser viewer harness. | Kitploit
Tools/GitHubGitHub/open-flaw/cve-2026-25940
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWeb Security
GitHubopen-flaw/cve-2026-25940

CVE-2026-25940

Proof-of-concept for CVE-2026-25940 demonstrating embedded JavaScript execution via crafted AcroForm radio button appearances in PDF viewers, with Node.js generator and browser viewer harness.

View Repository
5 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-25940 jsPDF PoC

A proof-of-concept for CVE-2026-25940 demonstrating how specially crafted AcroForm radio button appearances can trigger embedded JavaScript in vulnerable PDF viewers (e.g., Foxit). The repo includes a Node-based generator and a browser viewer harness to exercise different parsing paths.

⚠️ Use only in isolated, non-production environments. The sample payloads intentionally execute JavaScript and may invoke network requests or external programs. Do not open the generated PDF with untrusted viewers on a host you care about.

Repo Contents

  • poc.js: Generates a malicious PDF with multiple radio button options and distinct appearance streams to showcase different behaviors.
  • viewer.html: Minimal viewer harness to generate the PoC in-browser or load an existing sample, and render it both natively (iframe) and via PDF.js.
  • package.json: Declares the jsPDF dependency for the Node PoC.

Prerequisites

  • Node.js 18+ and npm.

Setup

  1. Install dependencies:
    root@kitploit:~
    npm install
    
  2. (Optional) Serve the viewer locally for cleaner loading of the HTML/JS:
root@kitploit:~
npx http-server .
# then open http://localhost:8080/viewer.html

Generate PoC PDF via Node

  1. Run the generator:
    root@kitploit:~
    node poc.js
    
  2. The script writes test.pdf in the project root. Open it with your target PDF viewer to observe behavior. Keep networking blocked if you want to avoid outbound requests.

Browser-Based Viewer Workflow

  1. Open viewer.html directly in a browser or via a local server.
  2. Click Generate PoC PDF to build the malicious document in-browser and load it into both the iframe (native/browser handler) and PDF.js canvas.
  3. Alternatively, choose Load file and select a PDF you generated with the Node script.
  4. Watch console/network activity for evidence of JavaScript execution; some viewers may suppress alerts while still running embedded actions.

Notes

  • Payloads are tuned toward Foxit behavior; other viewers may partially mitigate or block them.
  • If you adapt the payload, keep sizes similar to avoid changing object offsets that some exploit chains rely on.
  • Always test in a VM or sandbox with restricted network egress.
Download Tool