[
https://issues.apache.org/jira/browse/WW-5621?focusedWorklogId=1012021&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1012021
]
ASF GitHub Bot logged work on WW-5621:
--------------------------------------
Author: ASF GitHub Bot
Created on: 29/Mar/26 05:42
Start Date: 29/Mar/26 05:42
Worklog Time Spent: 10m
Work Description: lukaszlenart opened a new pull request, #1642:
URL: https://github.com/apache/struts/pull/1642
## Summary
Fixes [WW-5621](https://issues.apache.org/jira/browse/WW-5621)
Defense-in-depth hardening of XML parsers. Modern JDKs (7u45+) already
enforce a 64K entity expansion limit, so this is **not an exploitable
vulnerability** — all XML sources come from the classpath, not user input.
- Remove unused `parseStringAsXML` feature from `StringAdapter` to eliminate
theoretical attack surface
- Deprecate `getParseStringAsXML()` / `setParseStringAsXML()` for future
removal
- Enable `FEATURE_SECURE_PROCESSING` in Tiles `DigesterDefinitionsReader`
- Add unit test verifying JDK entity expansion limit rejects Billion Laughs
payloads
## Test plan
- [ ] `mvn test -DskipAssembly -pl core -Dtest=DomHelperTest` — verify
Billion Laughs test passes
- [ ] `mvn test -DskipAssembly -pl plugins/xslt` — verify XSLT plugin tests
pass with StringAdapter changes
- [ ] `mvn test -DskipAssembly -pl plugins/tiles` — verify Tiles plugin
tests pass with SECURE_PROCESSING
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Issue Time Tracking
-------------------
Worklog Id: (was: 1012021)
Remaining Estimate: 0h
Time Spent: 10m
> Harden XML parsers against Entity Expansion (Billion Laughs) attacks
> --------------------------------------------------------------------
>
> Key: WW-5621
> URL: https://issues.apache.org/jira/browse/WW-5621
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - XSLT
> Reporter: Lukasz Lenart
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 6.9.0, 7.2.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Defense-in-depth hardening of XML parsers. Modern JDKs (7u45+) already
> enforce a 64K entity expansion limit, so this is not an exploitable
> vulnerability — all XML sources come from the classpath, not user input.
> Changes:
> - Remove unused {{parseStringAsXML}} feature from {{StringAdapter}} to
> eliminate theoretical attack surface
> - Deprecate {{getParseStringAsXML()}} / {{setParseStringAsXML()}} for
> future removal
> - Enable {{FEATURE_SECURE_PROCESSING}} in Tiles
> {{DigesterDefinitionsReader}}
> - Add unit test verifying JDK entity expansion limit rejects Billion Laughs
> payloads
--
This message was sent by Atlassian Jira
(v8.20.10#820010)