Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.5
CVE-2026-42181: Lemmy lets low‑privilege users leak internal images
CVE-2026-42181 · published 6 months ago
Summary
Lemmy versions before 0.19.18 let a signed-in user submit a link whose preview image points to an internal server. The system fetches that image and then makes it publicly viewable, exposing internal resources. Upgrade Lemmy to version 0.19.18 or later to stop the image fetching behavior.
What to do
- Update nutomic lemmy_api_common to version 0.19.18.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| crates.io | nutomic | lemmy_api_common |
< 0.19.18 Fix: upgrade to 0.19.18
|
Original advisory text
Lemmy has SSRF and internal image disclosure in post link metadata via unvalidated og:image
Lemmy is a link aggregator and forum for the fediverse. Prior to version 0.19.18, Lemmy fetches metadata for user-supplied post URLs and, under the default StoreLinkPreviews image mode, downloads the preview image through local pict-rs. While the top-level page URL is checked against internal IP ranges, the extracted og:image URL is not subject to the same restriction. As a result, an authenticated low-privileged user can submit an attacker-controlled public page whose Open Graph image points to an internal image endpoint. Lemmy will fetch that internal image server-side and store a local thumbnail that can then be served back to users. This issue has been patched in version 0.19.18.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-42181 Vendor Advisory
- https://github.com/LemmyNet/lemmy/commit/9ffe586dafac1a46acf17edf90e0165e5503b2f... URL
- https://github.com/LemmyNet/lemmy Product
- https://join-lemmy.org/news/2026-04-20_-_Lemmy_Release_v0.19.18 URL
- https://github.com/LemmyNet/lemmy/releases/tag/0.19.18
- https://github.com/LemmyNet/lemmy/security/advisories/GHSA-h6hf-9846-xwrq
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-918Server-Side Request Forgery (SSRF)
Timeline
Published8 May 2026
Updated4 Nov 2026
First seen6 May 2026
Track software like this
Free during beta