You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "github-advanced-security[bot] (via GitHub)" <gi...@apache.org> on 2026/05/12 09:26:19 UTC

Re: [PR] Wire the STSClient through to URIResolver [cxf]

github-advanced-security[bot] commented on code in PR #3106:
URL: https://github.com/apache/cxf/pull/3106#discussion_r3225242064


##########
rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java:
##########
@@ -640,7 +641,10 @@
         dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
 
         DocumentBuilder documentBuilder = dbf.newDocumentBuilder();
-        Document document = documentBuilder.parse(schemaLocation);
+        Document document;
+        try (URIResolver resolver = new URIResolver(schemaLocation)) {

Review Comment:
   ## CodeQL / Server-side request forgery
   
   Potential server-side request forgery due to a [user-provided value](1).
   Potential server-side request forgery due to a [user-provided value](2).
   Potential server-side request forgery due to a [user-provided value](3).
   
   [Show more details](https://github.com/apache/cxf/security/code-scanning/2216)



-- 
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: dev-unsubscribe@cxf.apache.org

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