Cross-site Scripting (XSS) The advisory has been revoked - it doesn't affect any version of package railroad-diagrams  (opens in a new tab)


Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-RAILROADDIAGRAMS-6282875
  • published28 Feb 2024
  • disclosed26 Feb 2024
  • creditcd80

Introduced: 26 Feb 2024

CVE-2024-26467  (opens in a new tab)
CWE-79  (opens in a new tab)

Amendment

This was deemed not a vulnerability.

Overview

railroad-diagrams is a small JS+SVG library for drawing railroad syntax diagrams.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the generator.html component. An attacker can execute arbitrary Javascript by sending a crafted URL.

Note: This is the intended behavior of the package, which accepts and executes JavaScript input by design.