{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-32657 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-32657 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-32657 is a medium-severity cross-site scripting vulnerability in NixOS hydra, published on 22 Apr 2024. 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 CVE-2024-32657 and fix it if it is affected.\n\nWhat it is: CVE-2024-32657 is a medium-severity cross-site scripting vulnerability in NixOS hydra, published on 22 Apr 2024. 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 CVE-2024-32657 in the wild and no public exploit code.\n\nAffected product: NixOS hydra. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-32657/ (Markdown: https://insights.sbomify.com/CVE-2024-32657/index.md)","id":"CVE-2024-32657","markdown":"https://insights.sbomify.com/CVE-2024-32657/index.md","name":"CVE-2024-32657","record":{"aliases":["GHSA-2p75-6g9f-pqgx"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"NixOS Hydra CI","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary JavaScript in the browser context of Hydra users by serving malicious HTML build artifacts, potentially leading to account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"hydra","vendor":"nixos"}],"cvss":{"score":4.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Hydra is a Continuous Integration service for Nix based projects. Attackers can execute arbitrary code in the browser context of Hydra and execute authenticated HTTP requests. The abused feature allows Nix builds to specify files that Hydra serves to clients. One use of this functionality is serving NixOS `.iso` files. The issue is only with html files served by Hydra. The issue has been patched on https://hydra.nixos.org around 2024-04-21 14:30 UTC. The nixpkgs package were fixed in unstable and 23.11. Users with custom Hydra packages can apply the fix commit to their local installations. The vulnerability is only triggered when opening HTML build artifacts, so not opening them until the vulnerability is fixed works around the issue.","ecosystems":[],"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":"Hydra has persistent XSS vulnerability serving HTML build outputs","id":"CVE-2024-32657","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2024"},"n_packages":0,"n_references":4,"next":{"headline":"FreeRDP ExtractRunLengthRegular* out of bound read","id":"CVE-2024-32658"},"packages":[],"prev":{"headline":"Ant Media Server vulnerable to local privilege escalation","id":"CVE-2024-32656"},"products":["hydra"],"published":"2024-04-22","related":[{"cvss_score":7.5,"headline":"Nix Hydra Missing authentication when triggering evaluations","id":"CVE-2024-45049","kev_date_added":null,"published":"2024-08-27"},{"cvss_score":7.1,"headline":"Hydra persistent XSS in build metrics","id":"CVE-2025-54800","kev_date_added":null,"published":"2025-08-12"},{"cvss_score":6.9,"headline":"Hydra missing authentication when triggering evaluations through GitHub and Gitea plugins","id":"CVE-2025-54864","kev_date_added":null,"published":"2025-08-12"},{"cvss_score":2.6,"headline":"Hydra no restricted eval after nix-eval-jobs migration","id":"CVE-2025-32435","kev_date_added":null,"published":"2025-04-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["NixOS"]},"summary":"Attackers can execute arbitrary JavaScript in the browser context of Hydra users by serving malicious HTML build artifacts, potentially leading to account takeover.","url":"https://insights.sbomify.com/CVE-2024-32657/"}