CVE-2026-40296: PhpSpreadsheet has XSS via number format code with @ text placeholder bypasses htmlspecialchars in HTML writer
(updated )
It was discovered that there is a way to bypass HTML escaping in the HTML writer using custom number format codes.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-40296 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →