Skip to content

Conversation

@renovatebot-confluentinc
Copy link

@renovatebot-confluentinc renovatebot-confluentinc bot commented Jan 31, 2025

For any questions/concerns about this PR, please review the Renovate Bot wiki/FAQs, or the #renovatebot Slack channel.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.asynchttpclient:async-http-client 2.5.3 -> 2.12.4 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


AsyncHttpClient (AHC) library's CookieStore replaces explicitly defined Cookies

CVE-2024-53990 / GHSA-mfj5-cf8g-g2fv

More information

Details

Summary

When making any HTTP request, the automatically enabled and self-managed CookieStore (aka cookie jar) will silently replace explicitly defined Cookies with any that have the same name from the cookie jar. For services that operate with multiple users, this can result in one user's Cookie being used for another user's requests.

Details

This issue is described without security warnings here:

https://github.com/AsyncHttpClient/async-http-client/issues/1964

A PR to fix this issue has been made:

https://github.com/AsyncHttpClient/async-http-client/pull/2033

PoC
  1. Add an auth Cookie to the CookieStore
    • This is identical to receiving an HTTP response that uses Set-Cookie, as shown in issue #​1964 above.
  2. Handle a different user's request where the same Cookie is provided as a passthrough, like a JWT, and attempt to use it by explicitly providing it.
  3. Observe that the user's cookie in step 2 is passed as the Cookie in step 1.
Impact

This is generally going to be a problem for developers of backend services that implement third party auth features and use other features like token refresh. The moment a third party service responds by setting a cookie in the response, the CookieStore will effectively break almost every follow-up request (hopefully by being rejected, but possibly by revealing a different user's information).

If your service sets cookies based on the response that happens here, it's possible to lead to even greater levels of exposure.

Workaroud

You can avoid this issue by disabling the CookieStore during client creation:

DefaultAsyncHttpClientConfig.Builder clientBuilder = Dsl.config()
 .setCookieStore(null)
 // other configuration
 ;

Severity

  • CVSS Score: Unknown
  • Vector String: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@service-bot-app service-bot-app bot marked this pull request as ready for review January 31, 2025 04:18
@service-bot-app service-bot-app bot marked this pull request as ready for review January 31, 2025 04:18
@service-bot-app service-bot-app bot requested review from a team as code owners January 31, 2025 04:18
@renovatebot-confluentinc renovatebot-confluentinc bot changed the title Update dependency org.asynchttpclient:async-http-client to v2.12.4 [SECURITY] (master) Update dependency org.asynchttpclient:async-http-client to v2.12.4 [SECURITY] (master) - autoclosed Jan 7, 2026
@renovatebot-confluentinc renovatebot-confluentinc bot deleted the renovate/master-maven-org.asynchttpclient-async-http-client-vulnerability branch January 7, 2026 07:28
@renovatebot-confluentinc renovatebot-confluentinc bot changed the title Update dependency org.asynchttpclient:async-http-client to v2.12.4 [SECURITY] (master) - autoclosed Update dependency org.asynchttpclient:async-http-client to v2.12.4 [SECURITY] (master) Jan 8, 2026
@renovatebot-confluentinc renovatebot-confluentinc bot restored the renovate/master-maven-org.asynchttpclient-async-http-client-vulnerability branch January 8, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants