Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. lemmy_api_common
  4. ›
  5. GHSA-h6hf-9846-xwrq

GHSA-h6hf-9846-xwrq: Lemmy has SSRF and internal image disclosure in post link metadata via unvalidated og:image

April 24, 2026

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.

References

  • github.com/LemmyNet/lemmy
  • github.com/LemmyNet/lemmy/commit/9ffe586dafac1a46acf17edf90e0165e5503b2f1
  • github.com/LemmyNet/lemmy/security/advisories/GHSA-h6hf-9846-xwrq
  • github.com/advisories/GHSA-h6hf-9846-xwrq
  • join-lemmy.org/news/2026-04-20_-_Lemmy_Release_v0.19.18

Code Behaviors & Features

Detect and mitigate GHSA-h6hf-9846-xwrq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.19.18

Fixed versions

  • 0.19.18

Solution

Upgrade to version 0.19.18 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

cargo/lemmy_api_common/GHSA-h6hf-9846-xwrq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:11 +0000.