code.vikunja.io/api
Affected
- introduced
0, last affected0.24.6(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: CVE-2026-27616, GO-2026-4553
Vikunja: Stored XSS via Unsanitized SVG Attachment Upload Leads to Token Exposure
Details
The application allows users to upload SVG files as task attachments. SVG is an XML-based format that supports JavaScript execution through elements such as <script> tags or event handlers like onload.
The application does not sanitize SVG content before storing it. When the uploaded SVG file is accessed via its direct URL, it is rendered inline in the browser under the application's origin. As a result, embedded JavaScript executes in the context of the authenticated user.
Because the authentication token is stored in localStorage, it is accessible via JavaScript and can be retrieved by a malicious payload.
Key security issues identified:
_No server-side sanitization of SVG content.
SVG attachments are rendered inline instead of being forced as a download.
Embedded JavaScript within SVG files is allowed to execute.
Authentication tokens stored in localStorage are accessible to client-side scripts._
PoC
_Tested Environment_
[ ] Application version: 1.1.0
[ ] Deployment type: Self-hosted
Steps to Reproduce
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg
onload="alert(localStorage.getItem('token'))"
xmlns="http://www.w3.org/2000/svg">
</svg>
localStorage.This confirms that arbitrary JavaScript embedded in an uploaded SVG file executes within the application's context.
Impact
This vulnerability is classified as Stored Cross-Site Scripting (XSS).
Potential impact includes:
Execution of arbitrary JavaScript in a victim’s browser.
Exposure of authentication tokens.
Potential account takeover.
Ability to perform authenticated actions on behalf of the victim.
Possible privilege escalation if higher-privileged users open the malicious attachment.
Any authenticated user who accesses a malicious SVG attachment may be affected.
Recommendations
This vulnerability can be mitigated by implementing proper server-side sanitization of SVG uploads and preventing inline execution of uploaded files.
Specifically:
Attachment
Stored XSS Proof of concept.pdf
A fix is available at https://github.com/go-vikunja/vikunja/releases/tag/v2.0.0.
High Basis: The source's own band: HIGH
0, last affected 0.24.6 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0