Intel

AIKIDO-2024-10520

ghost is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 9, 2024

30

Low Risk

This Affects:

jsghost
5.8.0 - 5.103.0
Fixed in 5.104.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to cross-site scripting (XSS) when uploading an SVG image as a staff profile picture. While there is validation against malicious <script> tags and certain attributes, this has proven insufficient. Attackers can embed malicious scripts using alternative tags (e.g., <foreignObject>) or attributes (e.g., xlink:href), bypassing existing protections.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

ghost is vulnerable to Cross-site Scripting (XSS) in versions 5.8.0 - 5.103.0.

How to fix this

Upgrade the ghost library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform