# CVE-2026-42181: Lemmy: SSRF and internal image disclosure in post link metadata via unvalidated og:image

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T15:21:58.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-h6hf-9846-xwrq
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- LemmyNet lemmy: < 0.19.18
- lemmy_api_common (crates.io): before 0.19.18

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/LemmyNet/lemmy/security/advisories/GHSA-h6hf-9846-xwrq> (exploit, web)
- <https://github.com/LemmyNet/lemmy/releases/tag/0.19.18> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42181> (advisory)
- <https://github.com/LemmyNet/lemmy/commit/9ffe586dafac1a46acf17edf90e0165e5503b2f1> (web)
- <https://github.com/LemmyNet/lemmy> (package)
- <https://join-lemmy.org/news/2026-04-20_-_Lemmy_Release_v0.19.18> (web)

## Sources

- CVE List: [CVE-2026-42181](https://www.cve.org/CVERecord?id=CVE-2026-42181), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-h6hf-9846-xwrq](https://github.com/advisories/GHSA-h6hf-9846-xwrq), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-42181](https://nvd.nist.gov/vuln/detail/CVE-2026-42181), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42181 · Whole record: https://cve.day/CVE-2026-42181.json · Rebuilt by cve.day 2026-11-25T22:59:21.109Z
