CVE-2026-129548: Kalmia through 0.2.0 Stored XSS via Unrestricted File Upload
Kalmia through 0.2.0 contains a stored cross-site scripting vulnerability that allows read-only authenticated users to upload HTML or SVG files via the upload-file endpoint without type restrictions. Attackers can share links to files served unauthenticated through the file get route, executing JavaScript in the admin origin to steal administrator JWTs from localStorage.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs a read-only authenticated Kalmia account and must persuade an administrator to open a link to the uploaded file. The uploaded file is served without authentication, so the target administrator does not need to be logged in to access the file route, but JavaScript executes in the admin origin.
What data or access could be exposed if exploitation succeeds?
JavaScript in a malicious uploaded HTML or SVG file can steal administrator JWTs stored in localStorage. The vulnerability can also affect confidentiality and integrity in the admin security context.
How can I determine whether an installation is affected?
Installations running Kalmia through version 0.2.0 are affected if read-only authenticated users can use the upload-file endpoint to upload HTML or SVG files without type restrictions and those files are served by the file get route.
What can be done while a permanent fix is unavailable?
Restrict or disable file uploads for read-only users, and block HTML and SVG uploads at the application, proxy, or storage layer. Existing uploaded HTML and SVG files should be reviewed and removed or prevented from being served with executable content.