René's URL Explorer Experiment


Title: Java: Model Spring reactive `WebClient.uri` as a request forgery sink by joshimar · Pull Request #22132 · github/codeql · GitHub

Open Graph Title: Java: Model Spring reactive `WebClient.uri` as a request forgery sink by joshimar · Pull Request #22132 · github/codeql

X Title: Java: Model Spring reactive `WebClient.uri` as a request forgery sink by joshimar · Pull Request #22132 · github/codeql

Description: Spring WebFlux's reactive WebClient sends a request to the URL passed to the per-request uri(...) method (for example webClient.get().uri(url)), declared on WebClient.UriSpec. The request-forgery model covers WebClient.create(url) and WebClient.builder().baseUrl(url). It does not yet cover the per-request uri(...) method, which is the usual way to set a request URL, so a URL built from untrusted input and sent through uri(...) is a java/ssrf sink that is currently unmodeled. Change Adds WebClient$UriSpec.uri as a request-forgery sink: - ["org.springframework.web.reactive.function.client", "WebClient$UriSpec", True, "uri", "", "", "Argument[0]", "request-forgery", "manual"] subtypes is True so the row also applies to RequestHeadersUriSpec and RequestBodyUriSpec, the receiver types returned by get(), post() and similar methods. The signature is left blank to cover all URL-bearing overloads: uri(URI), uri(String, Object...) and uri(String, Map). Testing Validated at three levels. Query tests. ReactiveWebClientSSRF.java adds tainted flows into uri(String) and uri(URI), and RequestForgery.expected is regenerated. The CWE-918 tests pass. True positives (full-build database). Compiled against the Spring WebFlux library, the sink reports untrusted input reaching the request URL: directly, via uri(String); as a URI template, via uri(String, Object...); via a UriComponentsBuilder whose host is attacker-controlled (fromUriString, host). Multi-repository variant analysis. Dataset: 34 popular public Java projects (Spring and WebFlux based), using the CodeQL databases GitHub publishes for them, fetched through the code scanning API. The full list is below: Repositories analyzed (34) alibaba/arthas alibaba/canal alibaba/nacos alibaba/spring-cloud-alibaba apache/dolphinscheduler apache/dubbo apache/rocketmq apache/shenyu apache/skywalking apolloconfig/apollo elunez/eladmin google/guava graphhopper/graphhopper halo-dev/halo jeecgboot/jeecg-boot macrozheng/mall macrozheng/mall-swarm Netflix/zuul openzipkin/zipkin resilience4j/resilience4j sofastack/sofa-boot spring-cloud/spring-cloud-commons spring-cloud/spring-cloud-config spring-cloud/spring-cloud-gateway spring-cloud/spring-cloud-netflix spring-cloud/spring-cloud-openfeign spring-projects/spring-boot spring-projects/spring-framework spring-projects/spring-security square/okhttp thingsboard/thingsboard YunaiV/ruoyi-vue-pro zalando/logbook zhoutaoo/SpringCloud Coverage check: the sink resolves and matches WebClient.uri call sites across the dataset, confirming the run exercises the new model. Result: no alerts, confirming no false positives on the dataset. Overload coverage The blank signature also matches the uri(Function) overload, whose Argument[0] is a builder callback. This matches how other fluent URL setters are modeled. The row can be restricted to the String and URI overloads if preferred.

Open Graph Description: Spring WebFlux's reactive WebClient sends a request to the URL passed to the per-request uri(...) method (for example webClient.get().uri(url)), declared on WebClient.UriSpec. The request-forge...

X Description: Spring WebFlux's reactive WebClient sends a request to the URL passed to the per-request uri(...) method (for example webClient.get().uri(url)), declared on WebClient.UriSpec. The request-f...

Opengraph URL: https://github.com/github/codeql/pull/22132

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c022f87e-a48a-9611-1282-f1bb9d13bb69
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDD9A:E1B7B:163C828:2077B4C:6A4E4E5A
html-safe-nonce7165c33bc0408593ba1d04048e17a4a451745190b83a48cd526877429e99cbc8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDlBOkUxQjdCOjE2M0M4Mjg6MjA3N0I0Qzo2QTRFNEU1QSIsInZpc2l0b3JfaWQiOiIxNTk0MTQwNDEyOTIxOTI1MjEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2d65cc8a0ae14641463580e5201fdaeddba5a77d074210faf633dfd55134dc47
hovercard-subject-tagpull_request:4009794440
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql/pull/22132/files
twitter:imagehttps://avatars.githubusercontent.com/u/5940328?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5940328?s=400&v=4
og:image:altSpring WebFlux's reactive WebClient sends a request to the URL passed to the per-request uri(...) method (for example webClient.get().uri(url)), declared on WebClient.UriSpec. The request-forge...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee8506f6d0538364886e3f0153c154c410965e70d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/22132/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F22132%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F22132%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql
Reloadhttps://github.com/github/codeql/pull/22132/files
Reloadhttps://github.com/github/codeql/pull/22132/files
Reloadhttps://github.com/github/codeql/pull/22132/files
Please reload this pagehttps://github.com/github/codeql/pull/22132/files
github https://github.com/github
codeqlhttps://github.com/github/codeql
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql
Fork 2k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Star 9.8k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Code https://github.com/github/codeql
Issues 986 https://github.com/github/codeql/issues
Pull requests 423 https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality 0 https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Code https://github.com/github/codeql
Issues https://github.com/github/codeql/issues
Pull requests https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
owen-mchttps://github.com/owen-mc
github:mainhttps://github.com/github/codeql/tree/main
joshimar:java/spring-webclient-uri-ssrf-sinkhttps://github.com/joshimar/codeql/tree/java/spring-webclient-uri-ssrf-sink
Conversation 7 https://github.com/github/codeql/pull/22132
Findings https://github.com/github/codeql/pull/22132/findings
Commits 3 https://github.com/github/codeql/pull/22132/commits
Checks 9 https://github.com/github/codeql/pull/22132/checks
Files changed https://github.com/github/codeql/pull/22132/files
Please reload this pagehttps://github.com/github/codeql/pull/22132/files
Java: Model Spring reactive WebClient.uri as a request forgery sink https://github.com/github/codeql/pull/22132/files#top
Show all changes 3 commits https://github.com/github/codeql/pull/22132/files
1db3132 Java: Model Spring reactive `WebClient.uri` as a request forgery sink joshimar Jul 7, 2026 https://github.com/github/codeql/pull/22132/commits/1db31327a74ea716e578cec72e0dcbc7f7393911
6ff2a4c Apply suggestion from @owen-mc joshimar Jul 7, 2026 https://github.com/github/codeql/pull/22132/commits/6ff2a4c0d6ab2dd33109a6cdba8be43df7da23e5
b8f8370 Update java/ql/lib/change-notes/2026-06-30-spring-webclient-uri-ssrf.md joshimar Jul 7, 2026 https://github.com/github/codeql/pull/22132/commits/b8f8370c33ee55d89d08d8814c24ac0b06cd9c04
Clear filters https://github.com/github/codeql/pull/22132/files
Please reload this pagehttps://github.com/github/codeql/pull/22132/files
Please reload this pagehttps://github.com/github/codeql/pull/22132/files
2026-06-30-spring-webclient-uri-ssrf.md https://github.com/github/codeql/pull/22132/files#diff-efddc08e89ba5b9633cf8fb9fa6b53cb337e855109aaee268aeb0c48980fcd41
org.springframework.web.reactive.function.client.model.yml https://github.com/github/codeql/pull/22132/files#diff-936694ee694b7c16bb2156aaf832cf62b01c7054fac942276073547d148ec03a
ReactiveWebClientSSRF.java https://github.com/github/codeql/pull/22132/files#diff-377c8f60c45594dd28b42fe832c86d99c15298dcdd3a5d403fff6826c33be727
RequestForgery.expected https://github.com/github/codeql/pull/22132/files#diff-67ff95b178581de11ec695e1421d6d951365a16b2bf0b4b3e085b4c88d75d6a5
WebClient.java https://github.com/github/codeql/pull/22132/files#diff-3c933f86ac7f9052178a81f1a9d0934cf431ec85ec5c432539a7819e42aef58c
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/lib/change-notes/2026-06-30-spring-webclient-uri-ssrf.mdhttps://github.com/github/codeql/pull/22132/files#diff-efddc08e89ba5b9633cf8fb9fa6b53cb337e855109aaee268aeb0c48980fcd41
View file https://github.com/joshimar/codeql/blob/b8f8370c33ee55d89d08d8814c24ac0b06cd9c04/java/ql/lib/change-notes/2026-06-30-spring-webclient-uri-ssrf.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22132/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/lib/ext/org.springframework.web.reactive.function.client.model.ymlhttps://github.com/github/codeql/pull/22132/files#diff-936694ee694b7c16bb2156aaf832cf62b01c7054fac942276073547d148ec03a
View file https://github.com/joshimar/codeql/blob/b8f8370c33ee55d89d08d8814c24ac0b06cd9c04/java/ql/lib/ext/org.springframework.web.reactive.function.client.model.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22132/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22132/files#diff-936694ee694b7c16bb2156aaf832cf62b01c7054fac942276073547d148ec03a
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/query-tests/security/CWE-918/ReactiveWebClientSSRF.javahttps://github.com/github/codeql/pull/22132/files#diff-377c8f60c45594dd28b42fe832c86d99c15298dcdd3a5d403fff6826c33be727
View file https://github.com/joshimar/codeql/blob/b8f8370c33ee55d89d08d8814c24ac0b06cd9c04/java/ql/test/query-tests/security/CWE-918/ReactiveWebClientSSRF.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22132/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22132/files#diff-377c8f60c45594dd28b42fe832c86d99c15298dcdd3a5d403fff6826c33be727
Please reload this pagehttps://github.com/github/codeql/pull/22132/files
Please reload this pagehttps://github.com/github/codeql/pull/22132/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.