🛡️ CVE-2026-21451 — bagisto

🟠 CVSS 8.4 — High ⚠️ Exploit Public CWE-79 NVD
8.4
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Bagisto has HTML Filter Bypass that Enables Stored XSS ### Summary A stored Cross-Site Scripting (XSS) vulnerability exists in Bagisto 2.3.8 within the CMS page editor. Although the platform normally attempts to sanitize `` tags, the filtering can be bypassed by manipulating the raw HTTP POST request before submission. As a result, arbitrary JavaScript can be stored in the CMS content and executed whenever the page is viewed or edited. This exposes administrators to a high-severity risk, including complete account takeover, backend hijacking, and malicious script execution. ### Details Bagisto’s CMS editor includes an HTML sanitation mechanism intended to protect against script injection by wrapping raw script content in `
` elements. However, this mechanism is applied only to requests submitted through the UI. When the CMS update request is intercepted and modified at the HTTP level, the sanitation layer fails to strip or encode embedded `` tags. Because the back-end trusts the manipulated request, the malicious script is stored in the database exactly as submitted. When an administrator opens the CMS page (either in the editor or in the storefront), the JavaScript executes in the browser context with full admin privileges. The vulnerability stems from insufficient server-side sanitization. Sanitization logic appears to rely on client-side or UI-layer controls, leaving the underlying HTTP endpoint unprotected. ### PoC * A Bagisto 2.3.8 installation with access to the admin panel * Ability to intercept and modify outgoing CMS update requests (e.g., via a proxy tool) * Editing any CMS page (such as /admin/cms/edit/{id}) By introducing unfiltered script content directly into the HTTP payload; bypassing the UI-level sanitization the CMS endpoint accepts and stores the malicious JS. ### Steps to Reproduce 1. Log in as admin 2. Navigate to: /admin/cms/edit/1 3. Intercept the request (e.g., using Burp Suite) 4. Modify the en[html_content] field to include raw JavaScript: unnamed unnamed > A video PoC has been prepared showing: * Normal CMS editing behavior * How the sanitation process is expected to work * How altering the raw request bypasses sanitization * Execution of the stored script once the page is loaded This helps illustrate both expected behavior and actual vulnerability behavior clearly. Video PoC: https://drive.google.com/file/d/1quGkBq1zwRhVrlJtVeDk9iQeUzqIyOM-/view ### Impact * Administrator account takeover * Session hijacking * Unauthorized actions performed in admin context * Defacement or injection of malicious content into public pages * Potential expansion into full application compromise ### Recommendations Implement server-side sanitization (e.g., HTMLPurifier or Laravel Purifier) to strip or encode tags regardless of how the request is manipulated.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs administrative privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2026-21451 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.

Affected software

CVE-2026-21451 is recorded against 2 packages.

  • bagisto (fixed in 2.3.10)
  • bagisto/bagisto (fixed in 2.3.10)

Timeline and source

Published on 2 January 2026 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. Record sourced from NVD.

References

github.com

Details

Severity HIGH
CVSS Score 8.4
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
CWE CWE-79
Public Exploit ⚠️ Yes
Source NVD
Published 2026-01-02
Updated 2026-08-12
Modified 2026-06-17
Fix URL N/A

Affected Packages

Software From version Fixed in
bagisto 2.3.10
bagisto/bagisto 2.3.10

Similar Threats

Exploit Protection

Are you running bagisto?

CVE-2026-21451 carries CVSS 8.4 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-21451 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.