CVE-2026-45011
JSON

7.3high

Apostrophe has stored XSS via javascript: URL in Image Widget Link

Severity
7.3high CVSS:3.1 by GitHub_M
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-5f64-7vfc-rcx6

Description

ApostropheCMS is an open-source Node.js content management system. Version 4.29.0 has a stored cross-site scripting vulnerability 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. As of time of publication, no known patched versions are available.

Affected

Product or packageVersionsReported by
apostrophecms apostrophe= 4.29.0CVE List
apostrophe (npm)4.29.0GitHub Advisory Database

All scores

GitHub_M7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
GitHub7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-79CWE-116

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

ApostropheCMS is an open-source Node.js content management system. Version 4.29.0 has a stored cross-site scripting vulnerability 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. As of time of publication, no known patched versions are available.

GitHub Advisory Database
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)

    image
  • 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.

    image

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.
NVD (es)

ApostropheCMS es un sistema de gestión de contenido Node.js de código abierto. La versión 4.29.0 tiene una vulnerabilidad de cross-site scripting almacenado en la funcionalidad del widget de imagen. Un usuario con el rol de Editor puede configurar un enlace de widget de imagen para usar una carga útil de URL javascript_disabled: . Debido a que los editores tienen permiso para publicar páginas, el widget malicioso puede ser publicado en el sitio en vivo. Cuando otro usuario, incluyendo un administrador o visitante público, hace clic en la imagen/enlace afectado, JavaScript arbitrario se ejecuta en el navegador de la víctima. Al momento de la publicación, no hay versiones parcheadas conocidas disponibles.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-45011 changed 2026-06-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-5f64-7vfc-rcx6 changed 2026-06-12CC-BY-4.0
NVDCVE-2026-45011 changed 2026-10-26Public domain