Vulnerability in github.com/hahwul/dalfox/v2
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-45089 has been found in github.com/hahwul/dalfox/v2.
Attackers can target a specific entry point like output over the network to misuse the product.
Data can be tampered with by attackers. CVSS score: 8.2/10.
What to do: upgrade github.com/hahwul/dalfox/v2 to 2.13.0 or later.
If unsure, ask your IT team or search "github.com/hahwul/dalfox/v2 CVE-2026-45089" on the vendor's site.
CVE-2026-45089 (github.com/hahwul/dalfox/v2) — CWE-306 / CVSS v3 8.2
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: output / debug / model.Options / dalfox.Initialize
Patched: 2.13.0 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-306) exists in github.com/hahwul/dalfox/v2. Attackers reach the vulnerable code path via output without authentication.
Check the vendor advisory for the affected versions of github.com/hahwul/dalfox/v2. Attack surface: output / debug / model.Options / dalfox.Initialize.
Severity: High (CVSS 8.2/10). Data can be tampered with by attackers.
Update to 2.13.0.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/hahwul/dalfox/v2' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'github.com/hahwul/dalfox/v2' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/hahwul/dalfox/v2を grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade github.com/hahwul/dalfox/v2 to 2.13.0ステージング環境で 2.13.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gogithub.com/hahwul/dalfox/v2 |
< 2.13.0→ 2.13.0 |
2.13.0 |
| Gogithub.com/hahwul/dalfox |
All versions→ Not listed |
Not listed |
Original description The description as published by the source.
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.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web github.com