CVE-2021-47982
Deferred Deferred - Pending Action
Stored XSS in WP-Paginate WordPress Plugin

Publication date: 2026-06-08

Last updated on: 2026-06-08

Assigner: VulnCheck

Description
WordPress Plugin WP-Paginate 2.1.3 contains a stored cross-site scripting vulnerability that allows authenticated attackers to inject malicious scripts by manipulating the preset parameter. Attackers can submit POST requests to the plugin settings page with script payloads in the preset parameter that are stored and executed when administrators view the settings.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-08
Last Modified
2026-06-08
Generated
2026-06-08
AI Q&A
2026-06-08
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
wp_paginate wp_paginate 2.1.3
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2021-47982 is a stored cross-site scripting (XSS) vulnerability in the WordPress Plugin WP-Paginate version 2.1.3. It allows authenticated attackers to inject malicious scripts by manipulating the "preset" parameter.

Attackers can submit POST requests to the plugin's settings page with script payloads in the "preset" parameter. These payloads are stored by the plugin and executed when administrators view the settings page.

This vulnerability is classified under CWE-79, which involves improper neutralization of input during web page generation, enabling cross-site scripting attacks.

Impact Analysis

Exploitation of this vulnerability can lead to the execution of malicious scripts in the context of the administrator's browser when they view the plugin settings.

This can result in unauthorized actions such as data theft, session hijacking, or other malicious activities performed with the administrator's privileges.

Detection Guidance

This vulnerability can be detected by checking for malicious script payloads in the "preset" parameter of POST requests sent to the WP-Paginate plugin settings page.

A practical approach is to monitor HTTP POST requests to the endpoint /wp-admin/options-general.php?page=wp-paginate.php and inspect the "preset" parameter for suspicious JavaScript code or script tags.

For example, you can use command-line tools like curl or network monitoring tools to detect such attempts.

  • Using curl to test for the vulnerability by sending a crafted POST request with a script payload in the "preset" parameter:
  • curl -X POST -d "preset=<script>alert('XSS')</script>" https://yourwordpresssite.com/wp-admin/options-general.php?page=wp-paginate.php --cookie "wordpress_logged_in=your_auth_cookie"
  • Monitor web server logs or use intrusion detection systems to look for POST requests containing script tags in the "preset" parameter.
Mitigation Strategies

Immediate mitigation steps include restricting access to the WP-Paginate plugin settings page to trusted administrators only, as the vulnerability requires authenticated access.

Additionally, avoid interacting with or viewing the plugin settings page until the vulnerability is patched to prevent execution of stored malicious scripts.

If possible, update the WP-Paginate plugin to a version where this vulnerability is fixed or apply any available patches from the plugin developers.

Implement web application firewall (WAF) rules to block or sanitize POST requests containing suspicious script payloads in the "preset" parameter.

Compliance Impact

The stored cross-site scripting (XSS) vulnerability in the WP-Paginate plugin allows attackers to inject malicious scripts that execute when administrators view the settings page. This can lead to unauthorized actions, data theft, or session hijacking.

Such security weaknesses can impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of personal data and secure handling of user information. Exploitation of this vulnerability could result in unauthorized access to sensitive data or administrative functions, potentially leading to breaches of confidentiality and integrity mandated by these regulations.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2021-47982. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart