Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
4.6
CVE-2024-32657: Hydra has persistent XSS vulnerability serving HTML build outputs
CVE-2024-32657 · published 2 years ago
Summary
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...
What to do
- Update nixos hydra to version 23.11 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| nixos | hydra |
< 23.11 cpe:2.3:a:nixos:hydra:*:*:*:*:*:*:*:* |
Original advisory text
Hydra has persistent XSS vulnerability serving HTML build outputs
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.
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32657... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-32657 Vendor Advisory
- https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx Vendor Advisory
- https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 Patch
- https://github.com/NixOS/nixpkgs/pull/306017 Patch
- https://github.com/NixOS/nixpkgs/pull/306018 Patch
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Severity
4.6
Medium
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published22 Apr 2024
Updated4 Nov 2026
First seen29 Sep 2026
Track software like this
Free during beta