CVE-2025-59948: FreshRSS is vulnerable to XSS due to lack of CSP on HTML query page
FreshRSS is a free, self-hostable RSS aggregator. Versions 1.26.3 and below do not sanitize certain event handler attributes in feed content, so by finding a page that renders feed entries without CSP, it is possible to execute an XSS payload. The Allow API access authentication setting needs to be enabled by the instance administrator beforehand for the attack to work as it relies on api/query.php. An account takeover is possible by sending a change password request via the XSS payload / setting UserJS for persistence / stealing the autofill password / displaying a phishing page with a spoofed URL using history.replaceState() If the victim is an administrator, the attacker can also perform administrative actions. This issue is fixed in version 1.27.0.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-59948?
CVE-2025-59948 has a medium severity rating due to its potential for XSS exploitation.
How do I fix CVE-2025-59948?
To fix CVE-2025-59948, upgrade FreshRSS to version 1.27.0 or later.
What types of attacks are possible with CVE-2025-59948?
CVE-2025-59948 allows for Cross-Site Scripting (XSS) attacks through un-sanitized event handler attributes.
Which versions of FreshRSS are affected by CVE-2025-59948?
FreshRSS versions 1.26.3 and below are affected by CVE-2025-59948.
Is a Content Security Policy (CSP) relevant to CVE-2025-59948?
CSP mitigates the risks associated with CVE-2025-59948 since it can prevent the execution of XSS payloads.