Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 66%

CVE-2026-54743: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in LemmyNet lemmy

0
Medium
VulnerabilityCVE-2026-54743cvecve-2026-54743cwe-79
Published: 08/19/2026 (08/19/2026, 20:18:43 UTC)
Source: CVE Database V5
Vendor/Project: LemmyNet
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Affected software

GitHub Actionsmore threats →ai
lemmynet/lemmy-ui
pkg:github/lemmynet/lemmy-ui
Affected versions
=0.19.19-beta.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/20/2026, 11:22:39 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses