CVE-2024-10031 Eclipse GlassFish is vulnerable to Stored XSS attacks through configuration file modifications

Medium 5.8 Published Updated

Attackers can execute stored cross-site scripting by modifying the underlying operating system configuration file in Eclipse GlassFish.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-10031?

CVE-2024-10031 is a medium-severity cross-site scripting vulnerability in Eclipse Glassfish, published on 16 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In Eclipse GlassFish version 7.0.15 is possible to perform Stored Cross-site Scripting attacks by modifying the configuration file in the underlying operating system.

Weakness: CWE-79

Which versions are affected by CVE-2024-10031?

2 open source packages ship an affected version, including org.glassfish.main.admingui:console-common. It affects 1 product.

PackageAffectedFixed in
org.glassfish.main.admingui:console-common MavenAll versions to 7.0.25None
org.glassfish.main.admingui:console-common MavenAll versions to 7.0.25None

Products include Eclipse Glassfish.

How do I fix CVE-2024-10031?

No fix has been published for CVE-2024-10031 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-10031 being exploited?

There is no known exploitation of CVE-2024-10031 in the wild and no public exploit code.

Sources

Also known as GHSA-hp97-5x6g-q538.

Is CVE-2024-10031 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free