Removal planned (tentative) 31 December 2027
Replacing com.adobe.granite.xss in AEM as a Cloud Service
Adobe deprecated com.adobe.granite.xss on 12 December 2023 and lists a tentative removal date of 31 December 2027 (its table as read on 2 December 2026). Adobe says to use org.apache.sling.xss instead.
Affected packages and APIs
com.adobe.granite.xss
What to use instead
org.apache.sling.xss, which Adobe's table names as the replacement.
How to fix it
- Search for com.adobe.granite.xss imports, including in JSPs and Groovy scripts.
- Change the imports to org.apache.sling.xss; XSSAPI, XSSFilter and ProtectionContext keep their names.
- getRequestSpecificAPI and getResourceResolverSpecificAPI exist only in the Granite API; inject org.apache.sling.xss.XSSAPI directly instead.
AEM 6.5
import com.adobe.granite.xss.XSSAPI;Cloud Service
import org.apache.sling.xss.XSSAPI;How we detect it
- Readiness scan rule
granite-xss: com.adobe.granite.xss (tentative removal date: 31 December 2027).
Best Practices Analyzer reports it under OCU, OU.
Can agents fix it?
High.
The rating is for Surge Migrate's AEM 6.5 code pipeline. Agents draft the change, deterministic rules check it, and a named engineer approves every pull request. Your team merges.
Source: Adobe Experience League. Checked 19 October 2026.