CVE-2021-25117 WP Postratings < 1.86.1 - Admin+ Stored Cross-Site Scripting

Medium 4.8 Published Updated

Administrators can inject malicious scripts via the postratings_image parameter when unfiltered_html is disabled, leading to stored XSS.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-25117?

CVE-2021-25117 is a medium-severity cross-site scripting vulnerability in Unknown WP-PostRatings, published on 16 Jan 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

The WP-PostRatings WordPress plugin before 1.86.1 does not sanitise the postratings_image parameter from its options page (wp-admin/admin.php?page=wp-postratings/postratings-options.php). Even though the page is only accessible to administrators, and protected against CSRF attacks, the issue is still exploitable when the unfiltered_html capability is disabled.

Weakness: CWE-352

Which versions are affected by CVE-2021-25117?

It affects 1 product.

Products include Lesterchan Wp-Postratings.

How do I fix CVE-2021-25117?

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

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

Sources

Also known as GHSA-5c46-pxg6-m63r.

Is CVE-2021-25117 in your software?

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

Check your SBOMs for free