Skip to content

Feature xml xxe prevention#512

Open
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:feature-xml-xxe-prevention
Open

Feature xml xxe prevention#512
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:feature-xml-xxe-prevention

Conversation

@sahvx655-wq
Copy link
Copy Markdown

This PR hardens XML parsing across Apache Felix by disabling DTD processing, external entity resolution, and XInclude support in SAX, DOM, StAX, and XMLReader implementations used by core components, libraries, and build tools.

Parser Hardening:Secured XML parser factories in Declarative Services (SCR), iPOJO Manipulator, OSGi Check Maven Plugin, and StAX parsers.
XXE Validation: Added testParserRejectsXXE in XmlHandlerTest to verify that XML containing external entities or DOCTYPE declarations is safely rejected.
Compatibility: Existing OSGi descriptors do not rely on DTDs or external entities, so the changes are expected to be backward-compatible.

@sahvx655-wq sahvx655-wq force-pushed the feature-xml-xxe-prevention branch from 98e3f12 to 3b69bd1 Compare June 1, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant