# CVE-2021-24509: Page View Counts < 2.4.9 - Contributor+ Stored XSS

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-09T10:04:13.000Z
- Modified: 2026-06-17T03:40:09.340Z
- Weaknesses: CWE-79
- Assigned by: WPScan

## Description

The Page View Count WordPress plugin before 2.4.9 does not escape the postid parameter of pvc_stats shortcode, allowing users with a role as low as Contributor to perform Stored XSS attacks. A post made by a contributor would still have to be approved by an admin to have the XSS triggered in the frontend, however, higher privilege users, such as editor could exploit this without the need of approval, and even when the blog disallows the unfiltered_html capability.

(As written by CVE List.)

## Affected

- Unknown Page View Count: from 2.4.9 before 2.4.9
- a3rev page_view_count: before 2.4.9

## Every score

- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://wpscan.com/vulnerability/06df2729-21da-4c22-ae1e-dda1f15bdf8f> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24509](https://www.cve.org/CVERecord?id=CVE-2021-24509), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24509](https://nvd.nist.gov/vuln/detail/CVE-2021-24509), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24509 · Whole record: https://cve.day/CVE-2021-24509.json · Rebuilt by cve.day 2026-11-25T22:58:03.065Z
