CVE-2006-3476: XSS in PhpWebGallery comments.php keyword parameter
- Vendor
- Phpwebgallery
A cross-site scripting (XSS) vulnerability exists in PhpWebGallery versions 1.5.2 and earlier, and possibly 1.6.0, in the comments.php script. The vulnerability is due to insufficient sanitization of user-supplied input in the 'keyword' parameter, allowing 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 client-side attacks.
Mitigation
If you can’t patch tonight, do this now.
As a temporary mitigation, restrict access to comments.php, implement web application firewall (WAF) rules to filter malicious input, and ensure that user-supplied data is properly sanitized and encoded before being rendered in the browser.
Remediation
Patch, then assume compromise.
Upgrade to a version of PhpWebGallery where input to the 'keyword' parameter in comments.php is properly sanitized and output is correctly encoded to prevent XSS. If no patched version is available, apply a custom patch to sanitize user input.
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.
References
Frequently asked questions
- Is CVE-2006-3476 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2006-3476 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2006-3476?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2006-3476.
- Is there a patch for CVE-2006-3476?
- Upgrade to a version of PhpWebGallery where input to the 'keyword' parameter in comments.php is properly sanitized and output is correctly encoded to prevent XSS. If no patched version is available, apply a custom patch to sanitize user input.
- What products are affected by CVE-2006-3476?
- Phpwebgallery.
- How severe is CVE-2006-3476?
- CVE-2006-3476 has a CVSS v2 score of 4.3 (Medium) and an EPSS score of 1.9% (81st percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.