CVE-2024-10031: Eclipse GlassFish Console-Common Vulnerable to Stored XSS Attacks

Summary

16/07/2025
No i
Moderate
5.8

CVE-2024-10031: Eclipse GlassFish is vulnerable to Stored XSS attacks through configuration file modifications. Affects org.glassfish.main.admingui:console-common versions < 7.0.25. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Eclipse GlassFish is an open-source application server that provides a runtime environment for Java EE applications. The 'console-common' package is a critical component that facilitates the management and configuration of GlassFish servers through a web-based interface. This package is widely used for its ease of use and robust features, but it is susceptible to security vulnerabilities, including the one detailed here.

Vulnerability Detail

In Eclipse GlassFish version 7.0.15, a vulnerability exists that allows for Stored Cross-site Scripting (XSS) attacks. This vulnerability arises from improper handling of user input in the configuration files, which can be modified by an attacker with access to the underlying operating system. If exploited, this vulnerability could allow attackers to execute arbitrary scripts in the context of the user's browser, potentially leading to data theft, session hijacking, or other malicious actions.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can restrict access to the configuration files and ensure that only trusted administrators have the ability to modify them. Additionally, implementing input validation and sanitization measures can help mitigate the risk of XSS attacks until a patch is applied.

Conclusion

The vulnerability identified as CVE-2024-10031 in Eclipse GlassFish's console-common package poses a significant risk due to its potential for Stored XSS attacks. Users are strongly advised to update to the latest version to mitigate this risk. Implementing additional security measures can help protect against exploitation until a patch is applied.

See every vulnerability recorded for org.glassfish.main.admingui:console-common →

Share this vulnerability

FAQ

The vulnerability is a Stored Cross-site Scripting (XSS) issue that allows attackers to inject malicious scripts into the application.

Eclipse GlassFish versions from 0 up to 7.0.25 are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By analyzing your pom.xml file, Vulert can provide real-time alerts about vulnerabilities.

If an immediate update is not possible, implement strict access controls to configuration files and validate user inputs to reduce the risk of exploitation.

More details can be found in the official advisory on GitHub or by visiting the NVD database.

Related vulnerabilities

Recent vulnerabilities recorded for org.glassfish.main.admingui:console-common.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback