VYPR
Unrated severityNVD Advisory· Published Feb 14, 2012· Updated Apr 29, 2026

CVE-2012-1068

CVE-2012-1068

Description

Cross-site scripting (XSS) vulnerability in the rc_ajax function in core.php in the WP-RecentComments plugin before 2.0.7 for WordPress allows remote attackers to inject arbitrary web script or HTML via the page parameter, related to AJAX paging.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Cross-site scripting (XSS) vulnerability in WP-RecentComments plugin before 2.0.7 allows remote attackers to inject arbitrary web script via the page parameter in AJAX paging.

Vulnerability

The WP-RecentComments plugin for WordPress, versions before 2.0.7, contains a reflected cross-site scripting (XSS) vulnerability in the rc_ajax function within core.php. The page parameter, used for AJAX paging, is not properly sanitized or escaped before being output, allowing injection of arbitrary HTML and JavaScript. The fix was introduced in changeset [416723][1], which added proper escaping to the parameter.

Exploitation

An unauthenticated remote attacker can exploit this vulnerability by crafting a malicious URL that includes a JavaScript payload in the page parameter. When a victim visits the crafted URL or a page that triggers the AJAX paging functionality, the malicious script executes in the context of the victim's browser session. No special privileges or user interaction beyond visiting the crafted link is required.

Impact

Successful exploitation allows the attacker to execute arbitrary web script or HTML in the victim's browser. This can lead to session hijacking, defacement of the WordPress site, theft of sensitive information (e.g., cookies, authentication tokens), or redirection to malicious sites. The attack operates within the security context of the vulnerable WordPress installation.

Mitigation

The vulnerability was fixed in version 2.0.7 of the plugin. However, as of March 28, 2023, the plugin has been closed and removed from the WordPress.org plugin directory due to a security issue [2][3]. No patched version is available for download through official channels. Users who have the plugin installed should uninstall it immediately and consider alternative solutions. No workaround is documented.

AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

1
Plugin removedWP-RecentCommentswp-recentcomments

This plugin has been removed from the WordPress.org directory on 2023-03-28 (reason: Security Issue). No patched version is being distributed through the official directory. Users who have it installed should uninstall it.

Source: api.wordpress.org · directory page

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

6

News mentions

0

No linked articles in our index yet.