Dalfox: Unauthenticated Arbitrary File Create/Append via `output` Option in Dalfox Server Mode
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass, Code execution
- Confidentiality · integrity · availability
- None · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-306 and CWE-434.
Summary
Dalfox is a powerful open-source XSS scanner and utility focused on automation. Prior to 2.13.0, when dalfox is run in REST API server mode, the output, output-all, and debug fields in model.Options are JSON-tagged and deserialized directly from the attacker's request body, then propagated unchanged through dalfox.Initialize into the scan engine's logging path. The logger opens the attacker-supplied path with os.O_APPEND|os.O_CREATE|os.O_WRONLY and writes scan log lines to it. Critically, this file write block lives outside the IsLibrary guard in DalLog, so it executes even in server/library mode where file output was never intended to operate. Because no API key is required in the default configuration, an unauthenticated network caller can create or append to any file writable by the dalfox process on the host filesystem. This vulnerability is fixed in 2.13.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- 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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| hahwul | dalfox | before 2.13.0 | 2.13.0 | Patch available | CNA |
| — | github.com/hahwul/dalfox/v2 (Go) | before 2.13.0 | 2.13.0 | Patch available | GHSA-8hf9-3q64-q2qf |
- dalfox Vendorhahwul Affected before 2.13.0 Fixed in 2.13.0 Patch available CNA
- github.com/hahwul/dalfox/v2 (Go) Vendor— Affected before 2.13.0 Fixed in 2.13.0 Patch available GHSA-8hf9-3q64-q2qf
Remediation
- Fix · CNA dalfox (hahwul) Fixed in 2.13.0
- Fix · GHSA-8hf9-3q64-q2qf github.com/hahwul/dalfox/v2 (Go) Fixed in 2.13.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45089
- 2026-10-03 Alias added: GHSA-8hf9-3q64-q2qf
References
More hahwul vulnerabilities
- TI-2026-32934 Dalfox: Unauthenticated Remote Code Execution via `found-action` in Dalfox Server Mode CVSS 3.1CRITICAL 10.0
- TI-2026-32937 Dalfox: Unauthenticated Remote DoS via Closed-Channel Write in `ParameterAnalysis` (server mode) CVSS 3.1HIGH 7.5
- TI-2026-32935 Missing authentication in hahwul dalfox CVSS 3.1HIGH 7.5
Sources
- CVE-2026-45089 · CVE Program
- CVE-2026-45089 · NVD
- FIRST EPSS
- GHSA-8hf9-3q64-q2qf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences