{"id":"CVE-2026-45089","published":"2026-05-27T17:33:44Z","modified":"2026-05-27T17:59:46Z","title":"Dalfox: Unauthenticated Arbitrary File Create/Append via `output` Option in Dalfox Server Mode","vendor":"hahwul","product":"dalfox","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00243,"percentile":0.15821,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/hahwul/dalfox/security/advisories/GHSA-8hf9-3q64-q2qf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/hahwul/dalfox/releases/tag/v2.13.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":3.16},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"hahwul","affectedVersions":[{"vendor":"hahwul","product":"dalfox","versions":["< 2.13.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-27T17:59:11.175454Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/hahwul/dalfox/v2","vulnerableRanges":["<2.13.0"],"patched":["2.13.0"],"from":["GHSA-8hf9-3q64-q2qf","GO-2026-5257"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/hahwul/dalfox","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5257"],"provenance":"source"}],"summary":{"text":"Dalfox, an open-source XSS scanner, contains a flaw in its REST API server mode, where the output, output-all, and debug fields are taken from the request body and used by the scan engine's logger, which writes to an attacker-supplied path even when running as a library. An unauthenticated attacker with network access to the server can create or append to any file writable by the dalfox process, and no API key is needed in the default configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:26Z"},"euvd":{"id":"EUVD-2026-32614","exploited":false,"provenance":"source"}}