You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ppkarwasz (via GitHub)" <gi...@apache.org> on 2026/09/01 07:22:40 UTC

[PR] Document honored JAXP contracts in the threat model [commons-secure-xml]

ppkarwasz opened a new pull request, #66:
URL: https://github.com/apache/commons-secure-xml/pull/66

   Adds a **Honored JAXP contracts** subsection to *Assumptions about the environment* in the threat model, making explicit an assumption the securing recipes already rely on:
   
   - a method handed a `SAXSource` carrying an `XMLReader` parses with that reader, as the `SAXSource` contract requires;
   - a method handed a `StAXSource` reads from the stream or event reader it carries, as the `StAXSource` contract implies (the reader must arrive positioned on `START_DOCUMENT` or `START_ELEMENT`, and the source is consumed during processing).
   
   An implementation that ignores the supplied reader and parses with an internal parser of its own parses outside the securing; guarding against that would be a valid hardening, but the substitution is a contract violation in that implementation, not a vulnerability here — such a report is triaged `OUT-OF-SCOPE: foreign implementation`.
   
   Also bumps the modeled release line to **1.0.x**.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Sharpen the threat model: honored JAXP contracts, XInclude, and expansion limits [commons-secure-xml]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on code in PR #66:
URL: https://github.com/apache/commons-secure-xml/pull/66#discussion_r3905215335


##########
src/site/markdown/threat_model.md:
##########
@@ -132,12 +174,16 @@ JDK version and the standard `jdk.xml.*` limit properties the JDK itself reads:
   default `2500` on JDK 25 and `64000` on JDK 8 through 21). These are trusted deployment configuration: an operator may
   set one to tighten (or loosen) a limit globally, but loosening through one is reconfiguration, treated like loosening
   any other reserved setting (see [What is out of scope](#what-is-out-of-scope)).
-- The bundled parsers apply their own hardcoded secure defaults instead (for example external Xerces and Woodstox cap
-  entity expansion at `100000`) and do not read `jdk.xml.*`.
+- The bundled parsers apply their own hardcoded secure defaults instead

Review Comment:
   We don't bundle any parsers with the library, so what does "bundle" mean here? Please specify if these are the parsers we depend on at test-time. Or the parsers bundled in a JRE or JDK? Or something else?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Sharpen the threat model: honored JAXP contracts, XInclude, and expansion limits [commons-secure-xml]

Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on code in PR #66:
URL: https://github.com/apache/commons-secure-xml/pull/66#discussion_r3905280375


##########
src/site/markdown/threat_model.md:
##########
@@ -132,12 +174,16 @@ JDK version and the standard `jdk.xml.*` limit properties the JDK itself reads:
   default `2500` on JDK 25 and `64000` on JDK 8 through 21). These are trusted deployment configuration: an operator may
   set one to tighten (or loosen) a limit globally, but loosening through one is reconfiguration, treated like loosening
   any other reserved setting (see [What is out of scope](#what-is-out-of-scope)).
-- The bundled parsers apply their own hardcoded secure defaults instead (for example external Xerces and Woodstox cap
-  entity expansion at `100000`) and do not read `jdk.xml.*`.
+- The bundled parsers apply their own hardcoded secure defaults instead

Review Comment:
   Fixed in https://github.com/apache/commons-secure-xml/pull/66/commits/894fd4b1ec01925c0faad9db67fa0514d681e858



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Sharpen the threat model: honored JAXP contracts, XInclude, and expansion limits [commons-secure-xml]

Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz merged PR #66:
URL: https://github.com/apache/commons-secure-xml/pull/66


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org