CVE-2026-54743: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in LemmyNet lemmy
CVE-2026-54743 is a cross-site scripting (XSS) vulnerability in LemmyNet's lemmy-ui prior to version 0.19.19-beta.1. The issue arises from improper sanitization of Markdown-rendered content, specifically when image alt text is used in a way that allows unescaped HTML injection. This can enable an approved member or remote federated instance to inject malicious JavaScript that executes in the context of the lemmy-ui origin. Although Content Security Policy (CSP) can prevent exploitation in production, the default self-hosted deployment does not serve a CSP, leaving it vulnerable. The vulnerability is fixed in lemmy-ui version 0.19.19-beta.1.
AI Analysis
Technical Summary
LemmyNet's lemmy-ui prior to version 0.19.19-beta.1 uses markdown-it-html5-embed plugin with useImageSyntax enabled, which allows image alt text to be injected as live HTML without proper sanitization. The html setting does not apply to plugin-generated output, enabling crafted alt text to reach the DOM and execute JavaScript. This XSS vulnerability affects post bodies, comment bodies, private messages, and community and site sidebars. An approved member or remote federated instance can store malicious content, and any viewer rendering it may have their session and authenticated actions exposed. The advisory notes that a Content Security Policy prevents this exploit in production environments, but the default self-hosted deployment lacks CSP. The issue is resolved in lemmy-ui 0.19.19-beta.1.
Potential Impact
Successful exploitation allows execution of arbitrary JavaScript in the context of the lemmy-ui origin, potentially exposing viewer sessions and enabling unauthorized authenticated actions. The vulnerability affects users who view maliciously crafted content stored by approved members or remote federated instances. The presence of a Content Security Policy in production mitigates the risk, but default self-hosted deployments without CSP remain vulnerable.
Mitigation Recommendations
Upgrade lemmy-ui to version 0.19.19-beta.1 or later, where this vulnerability is fixed. Additionally, implement a strict Content Security Policy (CSP) to prevent JavaScript execution from untrusted sources. For default self-hosted deployments, ensure CSP is configured to mitigate this risk until the upgrade is applied. No other specific mitigations are noted in the advisory.
CVE-2026-54743: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in LemmyNet lemmy
Description
CVE-2026-54743 is a cross-site scripting (XSS) vulnerability in LemmyNet's lemmy-ui prior to version 0.19.19-beta.1. The issue arises from improper sanitization of Markdown-rendered content, specifically when image alt text is used in a way that allows unescaped HTML injection. This can enable an approved member or remote federated instance to inject malicious JavaScript that executes in the context of the lemmy-ui origin. Although Content Security Policy (CSP) can prevent exploitation in production, the default self-hosted deployment does not serve a CSP, leaving it vulnerable. The vulnerability is fixed in lemmy-ui version 0.19.19-beta.1.
CVSS v4.0
Score 6.4medium
Affected software
pkg:github/lemmynet/lemmy-uiRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
LemmyNet's lemmy-ui prior to version 0.19.19-beta.1 uses markdown-it-html5-embed plugin with useImageSyntax enabled, which allows image alt text to be injected as live HTML without proper sanitization. The html setting does not apply to plugin-generated output, enabling crafted alt text to reach the DOM and execute JavaScript. This XSS vulnerability affects post bodies, comment bodies, private messages, and community and site sidebars. An approved member or remote federated instance can store malicious content, and any viewer rendering it may have their session and authenticated actions exposed. The advisory notes that a Content Security Policy prevents this exploit in production environments, but the default self-hosted deployment lacks CSP. The issue is resolved in lemmy-ui 0.19.19-beta.1.
Potential Impact
Successful exploitation allows execution of arbitrary JavaScript in the context of the lemmy-ui origin, potentially exposing viewer sessions and enabling unauthorized authenticated actions. The vulnerability affects users who view maliciously crafted content stored by approved members or remote federated instances. The presence of a Content Security Policy in production mitigates the risk, but default self-hosted deployments without CSP remain vulnerable.
Mitigation Recommendations
Upgrade lemmy-ui to version 0.19.19-beta.1 or later, where this vulnerability is fixed. Additionally, implement a strict Content Security Policy (CSP) to prevent JavaScript execution from untrusted sources. For default self-hosted deployments, ensure CSP is configured to mitigate this risk until the upgrade is applied. No other specific mitigations are noted in the advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T23:12:41.964Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a86e0f3acd9273b4983851c
Added to database: 08/20/2026, 11:11:47 UTC
Last enriched: 08/20/2026, 11:22:39 UTC
Last updated: 08/20/2026, 22:52:13 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.