Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Weblate
-
DeliverySubmit Markdown comment with crafted image URL containing quotes and onerror attribute
-
ExploitWeblate Markdown renderer fails to escape attributes
-
ExecutionMalicious HTML rendered with unescaped event handler
-
PersistJavaScript executes if CSP permits
-
ImpactAttacker exfiltrates session data or performs actions as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the following SPECIFIC conditions: (1) The attacker must be an authenticated Weblate user with permission to create or edit comments or other Markdown-rendered user-provided content; (2) The Markdown renderer must process image syntax with unescaped attributes (affects versions before 5.17.1); (3) The target victim must view or access the page containing the malicious Markdown content; (4) The victim's browser must not enforce or must allow bypass of the application's Content Security Policy (CSP). Notably, unauthenticated remote exploitation is NOT possible due to the PR:L (Privilege Level: Low) requirement in the CVSS vector. Exploitation is limited to users with legitimate Weblate accounts. The strict CSP acts as a limiting factor for actual impact - even if attribute injection succeeds, CSP should block inline script execution. |
| Impact | This vulnerability presents LOW to MODERATE real-world risk despite a CVSS score of 4.3. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N) correctly identifies network accessibility and low complexity, but critically requires authenticated privileges (PR:L), limiting the attack surface to users with legitimate Weblate accounts. The Integrity impact is Low (I:L) because XSS injection is possible but confined to the rendered HTML context. The vendor explicitly notes that Weblate's strict Content Security Policy acts as a secondary control that substantially mitigates exploitation of injected JavaScript payloads, meaning even if an attacker injects malicious attributes, the CSP will likely block execution. No public exploit code or active exploitation has been reported. The attack requires precise Markdown crafting (as shown in test cases: URLs with embedded quotes and event handlers), and the XSS payload must bypass CSP to have impact. This is a POST-AUTHENTICATION vulnerability with mitigating controls already in place, making it lower priority than network-accessible unauthenticated XSS. However, organizations with stringent insider-threat policies or those hosting Weblate for untrusted user bases should prioritize patching. |
| Exploit ScenarioDerived | An authenticated Weblate user with permission to post comments submits a Markdown image with a crafted URL containing an embedded quote and event handler, such as >). The Markdown renderer converts this to an HTML img tag with an unescaped onerror attribute. If CSP is not properly configured or if the CSP allows inline event handlers, the injected JavaScript executes in the victim's browser session when the comment is rendered, potentially stealing session cookies or performing actions on behalf of the victim. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 07, 2026
Cross-site scripting (XSS) via improper Markdown attribute sanitization in Weblate allows authenticated users to inject malicious HTML attributes through crafted Markdown in user comments and other user-provided content. The vulnerability affects Weblate versions prior to 5.17.1 and can be exploited by any authenticated user with the ability to submit Markdown content; however, the application's strict Content Security Policy (CSP) significantly mitigates actual exploitation risk. Vendor-released patch version 5.17.1 is available.
RemediationAI
Apply the vendor-released patch by upgrading Weblate to version 5.17.1 or later. The patch escapes Markdown image URLs and title attributes before rendering, preventing attribute injection. Upgrade instructions are available at https://github.com/WeblateOrg/weblate/pull/19259 and https://github.com/WeblateOrg/weblate/commit/85abc9df88b7464f4c0e794aef752e45f4230f75. As a temporary workaround pending patching, rely on the existing strict Content Security Policy (CSP) configuration to prevent execution of injected JavaScript; verify that CSP headers are properly configured and enforce 'script-src' restrictions. Additionally, restrict the ability to submit Markdown content to trusted users only if operationally feasible, and monitor user comments for suspicious Markdown syntax containing quotes or event handler attributes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Weblate uses a Markdown renderer to process user-provided content in comments and other fields. The vulnerability stems from improper escaping of attributes in Markdown image tokens, specifically the image URL and title attributes. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) occurs because the Markdown parser was not properly escaping special characters in URLs and title attributes before embedding them into HTML. The patch introduces explicit HTML escaping using Python's html.escape() function and proper URL encoding to prevent attribute injection attacks. The vulnerable code path involves the render_image() method in weblate/utils/markdown.py, which now properly escapes the title attribute and validates URLs before rendering.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Primary rating from Vendor (https://github.com/WeblateOrg/weblate).
CVSS VectorVendor: https://github.com/WeblateOrg/weblate
DescriptionCVE.org
Impact
The Markdown renderer used in user comments and other user-provided content didn't properly sanitize some attributes.
Patches
- https://github.com/WeblateOrg/weblate/pull/19259
Workarounds
Even though the attacker might be able to inject code into the HTML, the Weblate's strict CSP should mitigate the risks.
Acknowlegement
Michal Čihař has identified and fixed this vulnerability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-28388
GHSA-5cmv-3rc4-7279
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB