Skip to content

chore(ssrf-guard): bump demos to 3.3.0 - #109

Merged
jlc488 merged 1 commit into
mainfrom
chore/ssrf-guard-3.3.0
Aug 9, 2026
Merged

chore(ssrf-guard): bump demos to 3.3.0#109
jlc488 merged 1 commit into
mainfrom
chore/ssrf-guard-3.3.0

Conversation

@jlc488

@jlc488 jlc488 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

ssrf-guard 3.3.0 반영.

3.3.0이 담는 것

첫 JVM ↔ JS 정합성 감사에서 나온 보안 수정 2건:

  • 리다이렉트 홉이 첫 요청과 같은 검사를 받음 — 어댑터 3종이 각자 다른 부분집합을 검사하던 것을 코어의 단일 정의(RedirectGuard)로. 특히 jdkhttp홉을 아무것도 검증하지 않고 있었습니다.
  • 툴 입력 스캐너가 비-http(s) 스킴·프로토콜 상대 URL을 정책 전에 버리지 않음

jdkhttp 데모는 버전만 올리면 안 됐습니다

3.3.0의 SsrfGuardedHttpClient리다이렉트를 스스로 따라가는 delegate를 거부합니다. 자기가 따라가며 재검증하기 때문입니다. 그래서 데모의 주석 "Wrap any HttpClient"거짓이 됐습니다.

주석을 지금 적용되는 제약 하나와 그 이유로 교체했습니다. 코드는 바꿀 필요가 없었습니다HttpClient.newBuilder().build()는 이미 Redirect.NEVER입니다.

검증

추정이 아니라 실제 아티팩트로 확인했습니다. 이 작업 시점에 3.3.0이 Maven Central에 올라와 있었고, 데모 7종 전부 그린입니다:

ssrf-guard-demo                  OK
ssrf-guard-feign-demo            OK
ssrf-guard-httpclient5-demo      OK
ssrf-guard-jdkhttp-demo          OK   ← 동작이 바뀐 대상
ssrf-guard-langchain4j-demo      OK
ssrf-guard-okhttp-demo           OK
ssrf-guard-springai-demo         OK

루트 README는 Maven Central 배지라 자동 갱신됩니다.

3.3.0 carries two security fixes found by the first JVM <-> JS parity
audit: redirect hops now get the same checks as the first request (via a
single core definition rather than three adapters each improvising a
different subset), and the LLM tool-input scanner stopped dropping
non-http(s) schemes and protocol-relative URLs before the policy saw
them.

The jdkhttp demo needed more than a version bump. 3.3.0 makes
SsrfGuardedHttpClient refuse a delegate that follows redirects itself,
because it now follows and re-validates them internally — so the demo's
comment, "Wrap any HttpClient", had become false. It is replaced with the
one constraint that now applies and why it exists. The code did not need
to change: HttpClient.newBuilder().build() is already Redirect.NEVER.

Verified against the real artifacts rather than assumed — 3.3.0 was on
Maven Central by the time this ran, and all seven demos build green,
jdkhttp included.
@jlc488
jlc488 merged commit 35460b4 into main Aug 9, 2026
10 checks passed
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