Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.3

Graylog lets attackers run malicious scripts via file upload

published 1 year ago
Summary

Graylog’s file‑upload feature can be misused to store and later run harmful JavaScript code when a user views the file through the API browser. This could let an attacker act as the logged‑in user and take over their session. Upgrade to Graylog version 6.2.0 or later, which removes the vulnerable API and adds extra protections.

What to do
  • Update graylog2 org.graylog2:graylog2-server to version 6.2.0.
Affected software
Ecosystem VendorProductAffected versions
Maven graylog2 org.graylog2:graylog2-server < 6.2.0
Fix: upgrade to 6.2.0
Original advisory text
Graylog Allows Stored Cross-Site Scripting via Files Plugin and API Browser
### 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
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
7.3 High
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published7 May 2025
Updated10 Sep 2026
First seen10 Sep 2026
Sources
Track software like this
Free during beta