# CVE-2026-45089: Dalfox: Unauthenticated Arbitrary File Create/Append via `output` Option in Dalfox Server Mode

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-05-12T15:08:27.000Z
- Modified: 2026-10-26T11:10:00.157Z
- Also known as: GHSA-8hf9-3q64-q2qf, GO-2026-5257
- Weaknesses: CWE-73, CWE-306, CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- hahwul dalfox: < 2.13.0
- github.com/hahwul/dalfox/v2 (Go): before 2.13.0
- github.com/hahwul/dalfox (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`

## References

- <https://github.com/hahwul/dalfox/security/advisories/GHSA-8hf9-3q64-q2qf> (advisory, web)
- <https://github.com/hahwul/dalfox/releases/tag/v2.13.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45089> (advisory)
- <https://github.com/hahwul/dalfox> (package)

## Sources

- CVE List: [CVE-2026-45089](https://www.cve.org/CVERecord?id=CVE-2026-45089), CVE Terms of Use, modified 2026-05-27
- GitHub Advisory Database: [GHSA-8hf9-3q64-q2qf](https://github.com/advisories/GHSA-8hf9-3q64-q2qf), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5257](https://pkg.go.dev/vuln/GO-2026-5257), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-45089](https://nvd.nist.gov/vuln/detail/CVE-2026-45089), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-45089 · Whole record: https://cve.day/CVE-2026-45089.json · Rebuilt by cve.day 2026-11-25T22:59:22.633Z
