Improper Encoding or Escaping of Output in jspdf - CVE-2026-31898
Published: April 27, 2026
jspdf
Detailed vulnerability description
The vulnerability allows a remote attacker to inject arbitrary PDF objects.
The vulnerability exists due to improper encoding or escaping of output in the createAnnotation method when processing the color parameter of a free text annotation. A remote attacker can supply crafted input to inject arbitrary PDF objects.
User interaction is required to open or interact with the generated PDF for injected actions to trigger.