Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-46965 Overview
CVE-2025-46965 is a stored Cross-Site Scripting (XSS) vulnerability affecting Adobe Experience Manager (AEM) versions 6.5.22 and earlier, including AEM Cloud Service. A low-privileged authenticated attacker can inject malicious JavaScript into vulnerable form fields. The payload persists in the application and executes in a victim's browser when they view the affected page. The flaw is classified under CWE-79 and requires user interaction to trigger. Exploitation can lead to session compromise, credential theft, or unauthorized actions in the victim's authenticated context within AEM.
Critical Impact
An authenticated attacker with low privileges can store malicious scripts that execute in other users' browsers, enabling session hijacking and data exposure across the AEM authoring environment.
Affected Products
- Adobe Experience Manager (AEM) 6.5.22 and earlier
- Adobe Experience Manager Cloud Service
- AEM-managed form components rendering unsanitized user input
Discovery Timeline
- 2025-06-10 - CVE-2025-46965 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-46965
Vulnerability Analysis
The vulnerability is a stored XSS flaw rooted in insufficient input validation and output encoding within AEM form field handling. An attacker with low-level authoring or contributor privileges can submit JavaScript payloads through form fields that AEM renders back to the browser without proper sanitization. Because the content is persisted in the repository, the payload executes every time a victim loads the affected page.
The scope change recorded in the vulnerability metadata indicates the injected script can affect resources beyond the component that stored it, including authenticated AEM sessions in the authoring UI. Successful exploitation enables theft of session tokens, forced actions on behalf of the victim, defacement of authored content, and pivoting into higher-privileged workflows if an administrator views the compromised page.
Root Cause
The root cause is missing or incomplete server-side neutralization of script-bearing input in form components, mapped to CWE-79. AEM accepts attacker-controlled markup through form field values and persists it in the Java Content Repository (JCR). When the component template renders the stored value, it emits the content into the HTML response without context-appropriate escaping, allowing arbitrary JavaScript to execute in the victim's browser.
Attack Vector
Exploitation requires network access to the AEM instance and an account with low privileges capable of editing form fields. The attacker submits a payload containing JavaScript into a vulnerable field. A victim with access to the page, often another author or an administrator, triggers execution by browsing to the content. See the Adobe Security Advisory APSB25-48 for component-level detail.
No verified exploit code is publicly available. See the Adobe Security Advisory
APSB25-48 for technical details on the affected components and payload surface.
Detection Methods for CVE-2025-46965
Indicators of Compromise
- Form field values in the JCR containing <script>, javascript:, onerror=, or onload= substrings
- Unexpected outbound requests from author or publish instances to attacker-controlled domains following page views
- AEM audit log entries showing content edits to form components by low-privileged accounts outside normal workflows
- Browser console errors or unexpected script execution reported by content authors viewing affected pages
Detection Strategies
- Query the JCR for persisted properties on form components that contain HTML tags or JavaScript event handlers
- Enable and review Dispatcher and AEM access logs for anomalous POST requests targeting form submission endpoints
- Deploy a web application firewall rule set that identifies XSS payloads in requests to /content/forms/ and related paths
- Correlate author activity with content modifications using repository audit records to flag suspicious edits
Monitoring Recommendations
- Monitor AEM author instances for script-tag content in rendered pages using DOM-based scanning tools
- Alert on new or modified form component properties made by non-administrative accounts
- Track Content Security Policy (CSP) violation reports from author and preview browsers to surface injection attempts
How to Mitigate CVE-2025-46965
Immediate Actions Required
- Apply the Adobe security update referenced in APSB25-48 to AEM 6.5.22 and earlier
- Audit existing form components for stored payloads containing script tags or JavaScript URIs and remove them
- Review and restrict author and contributor permissions to the minimum required for the role
- Rotate session tokens and credentials for accounts that may have viewed compromised pages
Patch Information
Adobe published fixes in Security Advisory APSB25-48. Customers on AEM Cloud Service should confirm they are running the patched release channel. Customers on AEM 6.5 must upgrade past version 6.5.22 to a fixed service pack.
Workarounds
- Enforce a strict Content Security Policy on author and publish instances to limit inline script execution
- Deploy WAF or Dispatcher filters that reject form submissions containing HTML tags or script event handlers
- Restrict form editing capabilities to trusted author groups until the patch is applied
# Example Dispatcher filter rule to block script payloads in form submissions
/0100 { /type "deny" /method "POST" /url "/content/forms/*" /query "*<script*" }
/0101 { /type "deny" /method "POST" /url "/content/forms/*" /query "*javascript:*" }
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

