CVE-2025-31136: FreshRSS vulnerable to Cross-site Scripting by <iframe>'ing a vulnerable same-origin page in a feed entry

Published Jun 4, 2025
·
Updated

FreshRSS is a self-hosted RSS feed aggregator. Prior to version 1.26.2, it's possible to run arbitrary JavaScript on the feeds page. This occurs by combining a cross-site scripting (XSS) issue that occurs in f.php when SVG favicons are downloaded from an attacker-controlled feed containing <script> tags inside of them that aren't sanitized, with the lack of CSP in f.php by embedding the malicious favicon in an iframe (that has sandbox="allow-scripts allow-same-origin" set as its attribute). An attacker needs to control one of the feeds that the victim is subscribed to, and also must have an account on the FreshRSS instance. Other than that, the iframe payload can be embedded as one of two options. The first payload requires user interaction (the user clicking on the malicious feed entry) with default user configuration, and the second payload fires instantly right after the user adds the feed or logs into the account while the feed entry is still visible. This is because of lazy image loading functionality, which the second payload bypasses. An attacker can gain access to the victim's account by exploiting this vulnerability. If the victim is an admin it would be possible to delete all users (cause damage) or execute arbitrary code on the server by modifying the update URL using fetch() via the XSS. Version 1.26.2 has a patch for the issue.

Affected Software

2 affected components
FreshRSS FreshRSS<1.26.2
FreshRSS FreshRSS<1.26.2

Event History

Jun 4, 2025
CVE Published
via MITRE·07:42 PM
Data Sourced
via MITRE·07:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-31136?

CVE-2025-31136 is classified as a medium severity vulnerability due to its potential for cross-site scripting (XSS).

2

How do I fix CVE-2025-31136?

To mitigate CVE-2025-31136, update FreshRSS to version 1.26.2 or later which resolves the XSS vulnerability.

3

What type of vulnerability is CVE-2025-31136?

CVE-2025-31136 is a cross-site scripting (XSS) vulnerability that allows arbitrary JavaScript execution on the feeds page.

4

Which versions of FreshRSS are affected by CVE-2025-31136?

CVE-2025-31136 affects FreshRSS versions prior to 1.26.2.

5

What components of FreshRSS are affected by CVE-2025-31136?

CVE-2025-31136 specifically affects the `f.php` component when SVG favicons from attacker-controlled feeds are processed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203