Skip to content

fix: upgrade jspdf to 4.2.1 (CVE-2026-31938) - #545

Open
anupamme wants to merge 1 commit into
lokus-ai:mainfrom
anupamme:fix-repo-lokus-cve-2026-31938-jspdf
Open

fix: upgrade jspdf to 4.2.1 (CVE-2026-31938)#545
anupamme wants to merge 1 commit into
lokus-ai:mainfrom
anupamme:fix-repo-lokus-cve-2026-31938-jspdf

Conversation

@anupamme

Copy link
Copy Markdown

Summary

Upgrade jspdf from 4.2.0 to 4.2.1 to fix CVE-2026-31938.

Vulnerability

Field Value
ID CVE-2026-31938
Severity CRITICAL
Scanner trivy
Rule CVE-2026-31938
File package-lock.json
Assessment Likely exploitable

Description: jspdf: jsPDF: Cross site scripting via unsanitized output options

Evidence

Scanner confirmation: trivy rule CVE-2026-31938 flagged this pattern.

Production code: This file is in the production codebase, not test-only code.

Changes

  • package.json
  • package-lock.json

Behavior Preservation

The change is scoped to 2 files on the vulnerable path, and the project builds successfully with this change applied.

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.


Automated security fix by OrbisAI Security

Automated dependency upgrade by OrbisAI Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant