Hydra has persistent XSS vulnerability serving HTML build outputs
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-79.
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 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA hydra (NixOS) Fixed in 23.11
Timeline
- 2026-10-02 Threatist record created from CVE-2024-32657
References
More NixOS Hydra vulnerabilities
- TI-2024-30161 Nix Hydra Missing authentication when triggering evaluations CVSS 3.1HIGH 7.5
- TI-2025-34598 Hydra missing authentication when triggering evaluations through GitHub and Gitea plugins CVSS 4.0MEDIUM 6.9
- TI-2025-34554 Hydra persistent XSS in build metrics CVSS 4.0HIGH 7.1
- TI-2025-23506 Hydra no restricted eval after nix-eval-jobs migration CVSS 3.1LOW 2.6
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences