{"answers":{"affected":"2 open source packages ship an affected version, including org.glassfish.main.admingui:console-common. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-10031 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-10031 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-10031 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-10031 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.glassfish.main.admingui:console-common (Maven): affected all versions up to 7.0.25; no fix listed\n- org.glassfish.main.admingui:console-common (Maven): affected all versions up to 7.0.25; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-10031/ (Markdown: https://insights.sbomify.com/CVE-2024-10031/index.md)","id":"CVE-2024-10031","markdown":"https://insights.sbomify.com/CVE-2024-10031/index.md","name":"CVE-2024-10031","record":{"aliases":["GHSA-hp97-5x6g-q538"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Java application server","requires_auth":"high_privilege","summary":"Attackers can execute stored cross-site scripting by modifying the underlying operating system configuration file in Eclipse GlassFish.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"eclipse","cpe":[{"product":"glassfish","vendor":"eclipse"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:H/UI:P/VC:L/VI:H/VA:N/SC:H/SI:H/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"In Eclipse GlassFish version 7.0.15 is possible to perform Stored Cross-site Scripting\nattacks by modifying the configuration file in the underlying operating system.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Eclipse GlassFish is vulnerable to Stored XSS attacks through configuration file modifications","id":"CVE-2024-10031","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"Eclipse GlassFish is vulnerable to Stored XSS attacks through its Administration Console","id":"CVE-2024-10032"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["7.0.25"],"package":"org.glassfish.main.admingui:console-common","purl":null,"source":"GHSA-hp97-5x6g-q538"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["7.0.25"],"package":"org.glassfish.main.admingui:console-common","purl":"pkg:maven/org.glassfish.main.admingui/console-common","source":"GHSA-hp97-5x6g-q538"}],"prev":{"headline":"Eclipse GlassFish is vulnerable to Reflected XSS attacks through its Administration Console","id":"CVE-2024-10029"},"products":["Eclipse Glassfish"],"published":"2025-07-16","related":[{"cvss_score":9.6,"headline":"Server-side request forgery in Eclipse GlassFish","id":"CVE-2026-12605","kev_date_added":null,"published":"2026-08-06"},{"cvss_score":9.6,"headline":"GlassFish's gadget handler is vulnerable to RCE","id":"CVE-2026-2587","kev_date_added":null,"published":"2026-05-19"},{"cvss_score":9.1,"headline":"GlassFish's Administration Console is Vulnerable to RCE","id":"CVE-2026-2586","kev_date_added":null,"published":"2026-05-19"},{"cvss_score":8.9,"headline":"Eclipse GlassFish is vulnerable to Server Side Request Forgery attacks through specific endpoints","id":"CVE-2024-9408","kev_date_added":null,"published":"2025-07-16"},{"cvss_score":6.9,"headline":"Glassfish redirect to untrusted site","id":"CVE-2024-9329","kev_date_added":null,"published":"2024-09-30"},{"cvss_score":6.8,"headline":"Glassfish remote code execution","id":"CVE-2023-5763","kev_date_added":null,"published":"2023-11-03"},{"cvss_score":6.5,"headline":"Path Traversal In Eclipse GlassFish","id":"CVE-2022-2712","kev_date_added":null,"published":"2023-01-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-16","vendors":["Eclipse Foundation"]},"summary":"Attackers can execute stored cross-site scripting by modifying the underlying operating system configuration file in Eclipse GlassFish.","url":"https://insights.sbomify.com/CVE-2024-10031/"}