{"answers":{"affected":"2 open source packages ship an affected version, including org.graylog2:graylog2-server.","exploited":"There is no known exploitation of GHSA-q9q2-3ppx-mwqf in the wild and no public exploit code.","fix":"Upgrade org.graylog2:graylog2-server to 6.2.0 or later.","what":"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."},"fix_prompt":"Check this codebase for GHSA-q9q2-3ppx-mwqf and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of GHSA-q9q2-3ppx-mwqf in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.graylog2:graylog2-server (Maven): affected all versions; fixed in 6.2.0\n- org.graylog2:graylog2-server (Maven): affected all versions; fixed in 6.2.0\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/GHSA-q9q2-3ppx-mwqf/ (Markdown: https://insights.sbomify.com/GHSA-q9q2-3ppx-mwqf/index.md)","id":"GHSA-q9q2-3ppx-mwqf","markdown":"https://insights.sbomify.com/GHSA-q9q2-3ppx-mwqf/index.md","name":"GHSA-q9q2-3ppx-mwqf","record":{"aliases":[],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Graylog server","requires_auth":"low_privilege","summary":"An attacker with file creation permissions can inject JavaScript via the Files plugin, leading to session hijacking when victims access the API browser.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\nTwo minor vulnerabilities were identified in the Graylog2 enterprise server, which can be combined to carry out a stored cross-site scripting attack.\nAn 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. \nThis enables the attacker to carry out authenticated API requests with the permissions of the logged-in user, thereby taking over the user session.\n\n### Patches\nThe generic API has been removed in 6.2.0 rendering the attack vector unreachable and additional escaping has been added.\n\nAnalysis provided by Fabian Yamaguchi - Whirly Labs (Pty) Ltd","ecosystems":["Maven"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Graylog Allows Stored Cross-Site Scripting via Files Plugin and API Browser","id":"GHSA-q9q2-3ppx-mwqf","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Maven","fixed":["6.2.0"],"introduced":["0"],"last_affected":[],"package":"org.graylog2:graylog2-server","purl":null,"source":"GHSA-q9q2-3ppx-mwqf"},{"ecosystem":"Maven","fixed":["6.2.0"],"introduced":["0"],"last_affected":[],"package":"org.graylog2:graylog2-server","purl":"pkg:maven/org.graylog2/graylog2-server","source":"GHSA-q9q2-3ppx-mwqf"}],"products":null,"published":"2025-05-07","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An attacker with file creation permissions can inject JavaScript via the Files plugin, leading to session hijacking when victims access the API browser.","url":"https://insights.sbomify.com/GHSA-q9q2-3ppx-mwqf/"}