CVE-2025-47017 Overview
Adobe Experience Manager (AEM) versions 6.5.22 and earlier contain a stored Cross-Site Scripting (XSS) vulnerability [CWE-79]. A low-privileged attacker can inject malicious JavaScript into vulnerable form fields. The injected script executes in a victim's browser when they view the page containing the affected field. The flaw impacts both the on-premises AEM 6.5.x line and the AEM Cloud Service. Successful exploitation requires user interaction and can compromise content confidentiality and integrity within the affected browser session.
Critical Impact
Authenticated attackers with limited privileges can persistently store malicious JavaScript in AEM form fields, executing arbitrary script in the context of any user who loads the affected page.
Affected Products
- Adobe Experience Manager 6.5.22 and earlier (on-premises)
- Adobe Experience Manager Cloud Service
- AEM form components rendering user-supplied field content
Discovery Timeline
- 2025-06-10 - CVE-2025-47017 published to the National Vulnerability Database
- 2025-06-10 - Adobe releases security bulletin APSB25-48
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-47017
Vulnerability Analysis
The vulnerability is a stored Cross-Site Scripting flaw in Adobe Experience Manager form-handling components. AEM fails to sanitize or encode attacker-controlled input written to specific form fields. The malicious payload persists in the content repository and renders whenever a user loads the affected page. Because the payload is served in the trusted AEM origin, browsers execute it with the privileges of the viewing user.
The attack has a changed scope, meaning the injected script can affect resources beyond the vulnerable component. Confidentiality and integrity impact are limited to what the victim's browser can access, including session cookies, authored content, and API calls issued by the AEM UI. Availability is not affected. Exploitation requires the attacker to hold a low-privileged AEM account and requires a victim to visit the poisoned page.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. AEM stores attacker-supplied content in form fields without HTML-encoding it before rendering. Any <script> tag, event handler attribute, or JavaScript URI supplied by the attacker is returned verbatim to downstream viewers.
Attack Vector
An authenticated attacker with author or contributor-level access submits a crafted payload through a vulnerable AEM form field. The payload is persisted in the JCR repository. When another authenticated user, typically a reviewer, administrator, or site visitor with access, opens the page, the browser parses and executes the stored JavaScript. See the Adobe Security Advisory APSB25-48 for vendor-supplied technical detail.
No public proof-of-concept exploit code is available for this issue.
Detection Methods for CVE-2025-47017
Indicators of Compromise
- Form field values in the JCR repository containing <script>, onerror=, onload=, or javascript: sequences.
- Unexpected outbound requests from browser sessions loading AEM authoring or delivery pages.
- New or modified content nodes authored by low-privileged accounts that contain HTML markup in text-only fields.
Detection Strategies
- Query the JCR repository for property values matching common XSS payload patterns and review recent changes attributed to non-administrator users.
- Enable AEM Dispatcher and access-log review for anomalous POST bodies targeting form-submission endpoints.
- Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution violations on AEM-served pages.
Monitoring Recommendations
- Alert on authoring activity that writes script-like content into fields that should contain plain text.
- Correlate low-privileged account activity with subsequent page views by privileged users to detect targeted delivery.
- Monitor browser-side CSP violation reports for scripts sourced from authored form content.
How to Mitigate CVE-2025-47017
Immediate Actions Required
- Apply the AEM 6.5 Service Pack and Cloud Service update referenced in Adobe Security Advisory APSB25-48.
- Audit author, contributor, and form-submitter accounts and remove unnecessary write permissions on form components.
- Review recently modified form-field content for stored script payloads and remediate affected nodes.
Patch Information
Adobe addressed this vulnerability in the June 2025 security update for Adobe Experience Manager. Administrators should upgrade AEM 6.5 to Service Pack 23 or later and ensure AEM Cloud Service instances are on the patched release documented in APSB25-48.
Workarounds
- Enforce a strict Content Security Policy that blocks inline scripts on AEM-delivered pages.
- Apply server-side output encoding using AEM's XSS API (XSSAPI.encodeForHTML, XSSAPI.encodeForHTMLAttr) in custom components that render form-field values.
- Restrict form-authoring permissions to trusted users until patching is complete.
# Example CSP header to mitigate stored XSS on AEM delivery tier
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.