CVE-2025-50975 Cross-site scripting in n/a

Medium 5.4 Published Updated

Authenticated administrators can inject persistent JavaScript into IPFire firewall rules, leading to session hijacking and unauthorized actions when viewed by other admins.

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-50975?

CVE-2025-50975 is a medium-severity cross-site scripting vulnerability in n/a, published on 26 Aug 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 2.29 web-based firewall interface (firewall.cgi) fails to sanitize several rule parameters such as PROT, SRC_PORT, TGT_PORT, dnatport, key, ruleremark, src_addr, std_net_tgt, and tgt_addr, allowing an authenticated administrator to inject persistent JavaScript. This stored XSS payload is executed whenever another admin views the firewall rules page, enabling session hijacking, unauthorized actions within the interface, or further internal pivoting. Exploitation requires only high-privilege GUI access, and the complexity of the attack is low.

Weakness: CWE-79

Which versions are affected by CVE-2025-50975?

It affects 1 product.

Products include Ipfire Ipfire.

How do I fix CVE-2025-50975?

No fix has been published for CVE-2025-50975 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-50975 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-50975 exists.

Sources

Also known as GHSA-c7fh-m339-6279.

Is CVE-2025-50975 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free