# CVE-2021-25042: WP Visitor Statistics (Real Time Traffic) < 5.5 - Arbitrary IP Address Exclusion to 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.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-28T09:06:33.000Z
- Modified: 2026-06-17T03:41:21.730Z
- Weaknesses: CWE-862
- Assigned by: WPScan

## Description

The WP Visitor Statistics (Real Time Traffic) WordPress plugin before 5.5 does not have authorisation and CSRF checks in the updateIpAddress AJAX action, allowing any authenticated user to call it, or make a logged in user do it via a CSRF attack and add an arbitrary IP address to exclude. Furthermore, due to the lack of validation, sanitisation and escaping, users could set a malicious value and perform Cross-Site Scripting attacks against logged in admin

(As written by CVE List.)

## Affected

- Unknown WP Visitor Statistics (Real Time Traffic): from 5.5 before 5.5
- codepress visitor_statistics: before 5.5

## 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/05b9e478-2d3b-4460-88c1-7f81d3a68ac4> (exploit, third-party-advisory)

## Sources

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

---

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