OSV 1.4.0 · github-reviewed · 修改于 2026-06-13 06:02
发布时间
2026-05-15 02:27
GitHub 审查时间
2026-05-15 02:27
NVD 发布时间
2026-06-13 05:16
源文件
advisories/github-reviewed/2026/05/GHSA-5f64-7vfc-rcx6/GHSA-5f64-7vfc-rcx6.json
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.
ApostropheCMS (tested on version: v4.29.0)
Precondition Ensure at least one image exists in the media library.
If the media library is empty:
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)
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.
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:
Validate and sanitize all user-supplied URLs used in widget link fields.
Specifically:
4.29.0