CVE-2025-34305 IPFire < v2.29 Stored XSS via Multiple Methods in cleanhtml()
Authenticated attackers can inject scripts via multiple fields due to a sanitization bug, leading to stored XSS and potential account takeover in IPFire.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-34305?
CVE-2025-34305 is a medium-severity cross-site scripting vulnerability in IPFire.org IPFire, published on 28 Oct 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
IPFire versions prior to 2.29 (Core Update 198) contain multiple stored cross-site scripting (XSS) vulnerabilities caused by a bug in the cleanhtml() function (/var/ipfire/header.pl) that fails to apply HTML-entity encoding to user input. When an authenticated user submits data to affected endpoints - for example, POST /cgi-bin/wakeonlan.cgi (CLIENT_COMMENT), /cgi-bin/dhcp.cgi (ADVOPT_DATA, FIX_REMARK, FIX_FILENAME, FIX_ROOTPATH), /cgi-bin/connscheduler.cgi (ACTION_COMMENT), /cgi-bin/dnsforward.cgi (REMARK), /cgi-bin/vpnmain.cgi (REMARK), or /cgi-bin/dns.cgi (REMARK) - the application calls escape() and HTML::Entities::encode_entities() but never assigns the sanitized result back to the output variable. The original unsanitized value is therefore stored and later rendered in the web interface without proper sanitation or encoding, allowing injected scripts to execute in the context of other users who view the affected entries.
Weakness: CWE-79
Which versions are affected by CVE-2025-34305?
It affects 1 product.
Products include Ipfire Ipfire.
How do I fix CVE-2025-34305?
No fix has been published for CVE-2025-34305 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-34305 being exploited?
There is no known exploitation of CVE-2025-34305 in the wild and no public exploit code.
Other vulnerabilities in IPFire.org IPFire
Sources
Also known as GHSA-93x4-rqcr-8jqh.