CVE-2026-57568

Lychee: Stored XSS via Markdown javascript: Links in Photo and Album Descriptions (Gallery View)

Published Oct 15, 2026 CVSS 4.0 · 5.7 Medium EPSS < 1% KEV · Not listed
Description
Lychee is a free, open-source photo-management tool. Prior to 7.6.0, Lychee permits an authenticated user with album-edit permissions to store a javascript URI in an album or photo Markdown description because config/markdown.php enables allow_unsafe_links. app/Http/Resources/Models/Utils/PreformattedPhotoData.php and app/Http/Resources/Models/Utils/PreFormattedAlbumData.php convert the description to HTML, and the gallery components PhotoDetails.vue, Overlay.vue, PhotoThumb.vue, AlbumHero.vue, and AlbumCard.vue render that HTML with v-html. A visitor, including an unauthenticated visitor to a public album, who clicks the rendered link executes attacker-controlled JavaScript in the Lychee origin, which can expose session data or enable authenticated requests in the victim's context. This gallery-view flaw is distinct from CVE-2026-33738, which addressed feed rendering. This issue is fixed in version 7.6.0.

Analysis

AI-generated

Technical impact

A user who has the right to edit an album or photo may insert a Markdown link that points to a javascript: URI in the description. When the gallery view renders that description, the link is converted to safe HTML and displayed with v-html. Clicking the link causes the attacker’s script to run in the Lychee origin, potentially exposing session data or enabling authenticated requests on behalf of the victim. This flaw can be exploited via a stored payload that is rendered when anybody views the album or photo.

Affected Systems

All installations of Lychee before version 7.6.0 that have config/markdown.php set to allow_unsafe_links. Only accounts with album‑edit permissions can create the vulnerable content, but any visitor—including unauthenticated users—to a public album can trigger the JavaScript execution when they click the rendered link.

Risk and Exploitability

The CVSS score of 5.7 indicates moderate severity. The EPSS score of <1% shows the likelihood of exploitation is very low, and the vulnerability is not listed in CISA’s KEV catalogue. Nevertheless, the exploit path requires no special access beyond album‑edit rights and can affect anyone who visits a public album, making the risk realistic for widely shared galleries. The attack is performed by clicking the link in the stored description, a very simple and typical user action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Lychee to version 7.6.0 or later, which removes the unsafe markdown link rendering.
  • Restrict album‑edit permissions to trusted users to reduce the chance of malicious payloads being stored.
  • In the meantime, disable allow_unsafe_links in config/markdown.php and remove any existing javascript: links from photo or album descriptions.

Generated by OpenCVE AI on October 16, 2026 at 20:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Lycheeorg
Lycheeorg lychee
Vendors & Products Lycheeorg
Lycheeorg lychee
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Lychee is a free, open-source photo-management tool. Prior to 7.6.0, Lychee permits an authenticated user with album-edit permissions to store a javascript URI in an album or photo Markdown description because config/markdown.php enables allow_unsafe_links. app/Http/Resources/Models/Utils/PreformattedPhotoData.php and app/Http/Resources/Models/Utils/PreFormattedAlbumData.php convert the description to HTML, and the gallery components PhotoDetails.vue, Overlay.vue, PhotoThumb.vue, AlbumHero.vue, and AlbumCard.vue render that HTML with v-html. A visitor, including an unauthenticated visitor to a public album, who clicks the rendered link executes attacker-controlled JavaScript in the Lychee origin, which can expose session data or enable authenticated requests in the victim's context. This gallery-view flaw is distinct from CVE-2026-33738, which addressed feed rendering. This issue is fixed in version 7.6.0.
Title Lychee: Stored XSS via Markdown javascript: Links in Photo and Album Descriptions (Gallery View)
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 16, 2026, 5:13 PM
Reserved
Jun 24, 2026, 6:49 PM
Status
Deferred
Published
Oct 15, 2026, 5:17 PM
Modified
Oct 16, 2026, 6:17 PM