Skip to main content
VulnerabilityPublished

Rama Has Stored XSS

Affects ramaSource GCVE Database

0

CVSS 3.7 Low : upgrade to 0.3.0-rc.1 when convenient.

Data as of 8 Jul 2026, 13:40 UTC

CVSS 3.1 base score
3.7Low
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.3.0-rc.1
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N

What to do

Upgrade rama to 0.3.0-rc.1.

Affected software

ProductAffectedFixed in
crates.ioramaAffected
  • <0.3.0-rc.1
Fixed in
  • 0.3.0-rc.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The suggested fix is to escape all untrusted values before inserting them into the generated HTML, including HTML-escaping file and directory names used as link text, attribute-escaping values used inside href attributes, and escaping URI path components used in breadcrumbs, page titles, and headings. If you cannot patch yet, avoid enabling ServeDir with DirectoryServeMode::HtmlFileList on directories where untrusted users can create or influence file or directory names.

Description

The plabayo/rama project contains a stored/reflected cross-site scripting (XSS) vulnerability in the ServeDir HTML directory listing feature when configured with DirectoryServeMode::HtmlFileList. File names and URI path components are inserted into the generated HTML without proper escaping, allowing an attacker who can control or influence file or directory names to inject malicious HTML or JavaScript. This can lead to script execution in the browsers of users viewing the directory listing. The vulnerability affects version 0.3.0-rc.1 of rama. A fix involves properly escaping all untrusted values before embedding them in HTML. The severity is assessed as medium due to the requirement for attacker control over file names and user interaction.

References

Community reviews

Loading reviews…