GHSA-q9q2-3ppx-mwqf Graylog Allows Stored Cross-Site Scripting via Files Plugin and API Browser
An attacker with file creation permissions can inject JavaScript via the Files plugin, leading to session hijacking when victims access the API browser.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-q9q2-3ppx-mwqf?
GHSA-q9q2-3ppx-mwqf is a cross-site scripting vulnerability in org.graylog2:graylog2-server, published on 7 May 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Impact
Two minor vulnerabilities were identified in the Graylog2 enterprise server, which can be combined to carry out a stored cross-site scripting attack.
An attacker with the permission FILES_CREATE can exploit these vulnerabilities to upload arbitrary Javascript code to the Graylog2 server, which - upon requesting of the file by a user of the API browser - results in the execution of this Javascript code in the context of the Graylog frontend application.
This enables the attacker to carry out authenticated API requests with the permissions of the logged-in user, thereby taking over the user session.
Patches
The generic API has been removed in 6.2.0 rendering the attack vector unreachable and additional escaping has been added.
Analysis provided by Fabian Yamaguchi - Whirly Labs (Pty) Ltd
Which versions are affected by GHSA-q9q2-3ppx-mwqf?
2 open source packages ship an affected version, including org.graylog2:graylog2-server.
| Package | Affected | Fixed in |
|---|---|---|
org.graylog2:graylog2-server Maven | All versions | 6.2.0 |
org.graylog2:graylog2-server Maven | All versions | 6.2.0 |
How do I fix GHSA-q9q2-3ppx-mwqf?
Upgrade org.graylog2:graylog2-server to 6.2.0 or later.
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 GHSA-q9q2-3ppx-mwqf being exploited?
There is no known exploitation of GHSA-q9q2-3ppx-mwqf in the wild and no public exploit code.