CVE-2004-2308: XSS in cPanel dohtaccess.html dir Parameter
- Vendor
- Cpanel
A cross-site scripting (XSS) vulnerability exists in cPanel 9.1.0 and possibly earlier versions, where the 'dir' parameter in dohtaccess.html is not properly sanitized, allowing remote attackers to inject arbitrary web script or HTML.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary JavaScript or HTML in the context of the user's browser session, potentially leading to session hijacking, credential theft, or other malicious actions.
Mitigation
If you can’t patch tonight, do this now.
As a temporary mitigation, restrict access to the affected dohtaccess.html page, implement web application firewall (WAF) rules to filter malicious input, and ensure user input is properly sanitized and encoded.
Remediation
Patch, then assume compromise.
Upgrade to a patched version of cPanel where input validation and output encoding are properly implemented for the 'dir' parameter in dohtaccess.html.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2004-2308 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2004-2308 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2004-2308?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2004-2308.
- Is there a patch for CVE-2004-2308?
- Upgrade to a patched version of cPanel where input validation and output encoding are properly implemented for the 'dir' parameter in dohtaccess.html.
- What products are affected by CVE-2004-2308?
- Cpanel.
- How severe is CVE-2004-2308?
- CVE-2004-2308 has a CVSS v2 score of 4.3 (Medium) and an EPSS score of 1.7% (78th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.