Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-13700: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in spanrig Embed Swagger UI

0
Medium
VulnerabilityCVE-2024-13700cvecve-2024-13700cwe-79
Published: Thu Jan 30 2025 (01/30/2025, 13:41:56 UTC)
Source: CVE Database V5
Vendor/Project: spanrig
Product: Embed Swagger UI

Description

CVE-2024-13700 is a stored cross-site scripting (XSS) vulnerability in the Embed Swagger UI WordPress plugin (spanrig) affecting all versions up to 1. 0. 0. It arises from improper sanitization and escaping of user-supplied attributes in the 'wpsgui' shortcode, allowing authenticated users with contributor-level access or higher to inject malicious scripts. These scripts execute whenever any user views the compromised page, potentially leading to session hijacking, defacement, or unauthorized actions. The vulnerability has a CVSS score of 6. 4 (medium severity) and does not require user interaction but does require authenticated access. No public exploits are known at this time. Organizations using this plugin should prioritize patching or mitigating this issue to prevent abuse. The threat primarily affects WordPress sites globally, especially those with contributor-level user roles enabled.

AI-Powered Analysis

AILast updated: 02/25/2026, 22:44:59 UTC

Technical Analysis

CVE-2024-13700 is a stored cross-site scripting (XSS) vulnerability identified in the Embed Swagger UI plugin for WordPress, developed by spanrig. The vulnerability exists in all versions up to and including 1.0.0 due to insufficient input sanitization and output escaping on user-supplied attributes within the plugin's 'wpsgui' shortcode. This flaw allows authenticated attackers with contributor-level or higher privileges to inject arbitrary JavaScript code into pages where the shortcode is used. Because the malicious script is stored, it executes every time a user accesses the infected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of users. The vulnerability has a CVSS 3.1 base score of 6.4, reflecting medium severity, with an attack vector of network, low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity with a scope change. No public exploits have been reported yet, but the risk remains significant due to the ease of exploitation by authenticated users. The vulnerability underscores the importance of proper input validation and output encoding in WordPress plugins, especially those that accept user input for page generation. Since the plugin is used to embed Swagger UI documentation, affected sites likely include development, API documentation, and testing environments. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Potential Impact

The primary impact of CVE-2024-13700 is the potential for attackers with contributor-level access to execute arbitrary JavaScript in the context of affected WordPress sites. This can lead to session hijacking, theft of sensitive information such as authentication tokens, defacement of website content, and unauthorized actions performed on behalf of legitimate users. The vulnerability compromises confidentiality and integrity but does not affect availability. Since contributor-level access is required, the attack surface is limited to sites that allow such user roles, which is common in collaborative WordPress environments. Exploitation can affect all users who visit the compromised pages, including administrators, increasing the risk of privilege escalation and further compromise. Organizations relying on this plugin for API documentation or developer portals may face reputational damage, data leakage, and potential regulatory compliance issues if user data is exposed. The absence of public exploits reduces immediate risk but does not eliminate the threat, especially in environments with multiple contributors or less stringent access controls.

Mitigation Recommendations

To mitigate CVE-2024-13700, organizations should immediately update the Embed Swagger UI plugin to a patched version once available. Until a patch is released, restrict contributor-level and higher privileges to trusted users only, minimizing the risk of malicious shortcode injection. Implement web application firewalls (WAF) with rules to detect and block suspicious script injections in shortcode attributes. Conduct regular audits of pages using the 'wpsgui' shortcode to identify and remove any injected scripts. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts on affected sites. Educate contributors about secure input handling and the risks of injecting untrusted content. Additionally, consider disabling or removing the plugin if it is not essential to reduce the attack surface. Monitor logs and user activity for signs of exploitation attempts or unusual behavior related to shortcode usage. Finally, ensure that all WordPress core and plugins follow secure coding practices, including proper input validation and output encoding.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-01-24T14:08:26.968Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6e69b7ef31ef0b5a02e8

Added to database: 2/25/2026, 9:49:29 PM

Last enriched: 2/25/2026, 10:44:59 PM

Last updated: 2/26/2026, 9:17:16 AM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats