Skip to content
XSS Write-up Beginner

CVE-2025–6977-POC — Reflected XSS in ProfileGrid WordPress Plugin (Unauthenticated)

The ProfileGrid WordPress plugin reflects the 'timestamp' GET parameter without sanitisation into a JSON response served as text/html, allowing an attacker to inject script. An unauthenticated attacker can trick a logged-in user into visiting a crafted URL to execute arbitrary JavaScript in the victim's browser.

CANITEY Follow

Published on canitey.medium.com

The ProfileGrid — User Profiles, Groups and Communities plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘pmgetmessengernotification’ function in all versions up to, and including, 5.9.5.4 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated…

CANITEY, on canitey.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The plugin reads the 'timestamp' GET parameter without validation or sanitisation and echoes it into a response with Content-Type text/html, so any HTML/JavaScript in the parameter is rendered by the browser.

Impact

An unauthenticated attacker could execute arbitrary JavaScript in the context of a logged-in user's browser if they can trick the user into clicking a crafted link, potentially leading to session hijacking or other actions on behalf of the user.

What the attacker needed

Victim has an active session; victim clicks a crafted link; plugin version ≤ [redacted]

The fix

The vulnerability was fixed in version 5.9.5.5 by validating the timestamp parameter as an integer; additionally, setting the response Content-Type to application/json would prevent script execution.

How it was found

  1. Install WordPress with the vulnerable ProfileGrid plugin version.
  2. Ensure you have an active session (logged-in user).
  3. Visit the admin-ajax.php endpoint with action=pm_get_messenger_notification and a malicious value in the timestamp parameter.
  4. Observe the response containing the injected script.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Reflected cross-site scripting (XSS) happens when a website takes something from the URL and puts it directly into the page without cleaning it. Here, the plugin takes the 'timestamp' value from the URL and includes it in a response that the browser treats as HTML, so if the value contains HTML tags like an image with an error handler, the browser runs the JavaScript inside it. An attacker can send a link to a logged-in user; when the user clicks it, the script runs as that user.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by CANITEY

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.