CVE-2024-54160 Cross-site scripting in OpenSearch
Attackers can inject malicious scripts via unsanitized Markdown in OpenSearch dashboards headers or footers, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-54160?
CVE-2024-54160 is a medium-severity cross-site scripting vulnerability in LF Projects OpenSearch, published on 12 Feb 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
dashboards-reporting (aka Dashboards Reports) before 2.19.0.0, as shipped in OpenSearch before 2.19, allows XSS because Markdown is not sanitized when previewing a header or footer.
Weakness: CWE-79
Which versions are affected by CVE-2024-54160?
How do I fix CVE-2024-54160?
No fix has been published for CVE-2024-54160 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-54160 being exploited?
There is no known exploitation of CVE-2024-54160 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-9xrv-rxvq-776c.