The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4120

CVE-2026-4120: WordPress Info Cards Plugin XSS Flaw

CVE-2026-4120 is a stored cross-site scripting vulnerability in the Info Cards plugin for WordPress that allows authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: March 20, 2026

CVE-2026-4120 Overview

The Info Cards – Add Text and Media in Card Layouts plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the btnUrl parameter within the Info Cards block. This vulnerability exists in all versions up to and including 2.0.7 due to insufficient input validation on URL schemes, specifically the lack of javascript: protocol filtering.

The vulnerability allows authenticated attackers with Contributor-level access or above to inject malicious javascript: URLs that execute arbitrary web scripts when users click the rendered button links. This represents a significant security risk for WordPress sites that allow contributor or author access, as it could lead to session hijacking, credential theft, or defacement.

Critical Impact

Authenticated attackers can inject persistent JavaScript payloads via the btnUrl parameter, enabling session hijacking, credential theft, and malicious redirects when site visitors interact with Info Card button links.

Affected Products

  • Info Cards – Add Text and Media in Card Layouts plugin for WordPress versions up to and including 2.0.7
  • WordPress sites using the Info Cards block with Contributor or higher user roles
  • Any site permitting authenticated users to create or edit Info Card blocks

Discovery Timeline

  • 2026-03-19 - CVE CVE-2026-4120 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-4120

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability stems from a multi-stage processing flaw in how the Info Cards plugin handles URL input for button links. The block's render.php passes all block attributes as JSON to the frontend via a data-attributes HTML attribute using esc_attr(wp_json_encode()). While this approach effectively prevents HTML attribute injection, it does not validate URL protocols within the JSON data.

The client-side view.js then renders the btnUrl value directly as an href attribute on anchor elements without any protocol sanitization. This architectural gap allows attackers to bypass the server-side encoding protections by injecting javascript: protocol URLs that execute when clicked.

The attack requires authentication with at minimum Contributor-level privileges, limiting the attack surface to WordPress installations that grant content creation permissions to multiple users or untrusted contributors.

Root Cause

The root cause is insufficient input validation on URL schemes within the btnUrl parameter. The plugin correctly applies esc_attr() and wp_json_encode() for safe HTML attribute encoding on the server side but fails to implement URL protocol allowlisting or blacklisting. This means dangerous protocols like javascript:, data:, and vbscript: can be stored and later rendered as clickable links.

The validation gap exists between the server-side output encoding in render.php and the client-side rendering in view.js, where the URL is trusted without sanitization and applied directly to an anchor element's href attribute.

Attack Vector

The attack vector is network-based and requires authentication with Contributor-level privileges or above. An attacker exploits the vulnerability through the following sequence:

  1. The attacker authenticates to WordPress with Contributor or higher role privileges
  2. The attacker creates or edits a post containing an Info Cards block
  3. In the block settings, the attacker sets the btnUrl parameter to a javascript: URL containing malicious script code
  4. The block is saved and published (or submitted for review)
  5. When a site visitor or administrator clicks the malicious button link, the injected JavaScript executes in their browser context

The malicious script can then perform actions such as stealing session cookies, redirecting users to phishing pages, performing actions on behalf of the victim, or injecting additional malicious content into the page.

Detection Methods for CVE-2026-4120

Indicators of Compromise

  • Presence of javascript: protocol URLs in Info Cards block content within the WordPress database
  • Unusual or obfuscated JavaScript code patterns in btnUrl attributes of saved block data
  • Reports from users of unexpected behavior when clicking Info Card buttons
  • Evidence of session hijacking or unauthorized administrative actions following user interaction with Info Card elements

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block javascript: URLs in POST requests to the WordPress block editor
  • Enable WordPress audit logging to monitor block content changes by Contributor-level users
  • Deploy client-side XSS detection solutions that monitor for script execution from anchor click events
  • Regularly scan the WordPress database for stored XSS payloads in block content using security scanning tools

Monitoring Recommendations

  • Monitor WordPress audit logs for suspicious block editing activity, particularly from Contributor accounts
  • Configure alerting for any javascript: or data: protocol strings appearing in saved post content
  • Implement Content Security Policy (CSP) headers to restrict inline script execution and mitigate XSS impact
  • Review the Wordfence Vulnerability Analysis for updated threat intelligence

How to Mitigate CVE-2026-4120

Immediate Actions Required

  • Update the Info Cards plugin to a patched version beyond 2.0.7 when available from the WordPress plugin repository
  • Review and audit all existing Info Card blocks for malicious btnUrl values containing javascript: or other dangerous protocols
  • Restrict Contributor-level access to trusted users only until the patch is applied
  • Consider temporarily disabling the Info Cards plugin if untrusted contributors have access to the site

Patch Information

A patched version addressing this vulnerability should be available in the WordPress plugin repository. Administrators should update to the latest version that includes URL protocol validation. The fix should implement allowlisting of safe URL protocols (such as http:, https:, mailto:, and tel:) and reject or sanitize javascript:, data:, and vbscript: protocols.

Technical references for the vulnerable code can be found in the WordPress Info Cards Render PHP and WordPress Info Cards View JS files. The trunk revision at render.php revision 3482902 may contain the patched code.

Workarounds

  • Implement a Content Security Policy (CSP) with strict script-src directives to limit the impact of any XSS attacks
  • Use a Web Application Firewall (WAF) rule to block requests containing javascript: URLs in block attribute data
  • Temporarily demote Contributor accounts to Subscriber level to prevent block editing until patched
  • Manually review and sanitize existing Info Card block content in the database to remove any javascript: URLs

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Info Cards Block JSON

  • WordPress Info Cards Render PHP

  • WordPress Info Cards View JS

  • WordPress Info Cards Trunk Block JSON

  • WordPress Info Cards Trunk Render PHP

  • WordPress Info Cards Trunk Render PHP Revision

  • WordPress Info Cards Trunk View JS

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2026-4146: Loco Translate XSS Vulnerability

  • CVE-2026-1834: Ibtana WordPress Plugin XSS Vulnerability

  • CVE-2026-4267: Query Monitor WordPress Plugin XSS Flaw

  • CVE-2026-2480: WP Shortcodes Ultimate Plugin XSS Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English