Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 88%

CVE-2026-45089: CWE-73: External Control of File Name or Path in hahwul dalfox

0
High
VulnerabilityCVE-2026-45089cvecve-2026-45089cwe-73cwe-306cwe-434
Published: Wed May 27 2026 (05/27/2026, 17:33:44 UTC)
Source: CVE Database V5
Vendor/Project: hahwul
Product: dalfox

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.

CVSS v3.1

Score 8.2high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/27/2026, 18:03:44 UTC

Technical Analysis

Dalfox is an open-source XSS scanner that, before version 2.13.0, improperly handled the output, output-all, and debug fields in its REST API server mode. These fields are JSON-tagged and deserialized directly from the attacker's request body, then used as file paths for logging scan results. The logger opens the attacker-supplied path with append and write flags, enabling file creation or modification outside intended usage. This file write operation occurs even in server/library mode where file output was not intended, and no API key is required by default, allowing unauthenticated attackers to write to arbitrary files writable by the dalfox process. The vulnerability is addressed in dalfox 2.13.0.

Potential Impact

An unauthenticated remote attacker can exploit this vulnerability to write or append arbitrary data to files on the host filesystem with the permissions of the dalfox process. This can lead to unauthorized file modification, potential data corruption, or other impacts related to arbitrary file writes. Confidentiality is not impacted, but integrity is highly impacted. Availability impact is low.

Mitigation Recommendations

This vulnerability is fixed in dalfox version 2.13.0. Users should upgrade to version 2.13.0 or later to remediate this issue. Since no official patch link or vendor advisory is provided, verify the upgrade from the official hahwul dalfox repository or release notes. Until upgraded, restrict network access to the dalfox REST API server to trusted users only.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-08T19:27:26.697Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a172e7fe29bf47b50d78ab0

Added to database: 5/27/2026, 5:48:47 PM

Last enriched: 5/27/2026, 6:03:44 PM

Last updated: 5/29/2026, 11:24:22 AM

Views: 16

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses