Intel

AIKIDO-2026-552020

aiosonic is vulnerable to Sensitive Information Disclosure

Sensitive Information DisclosureGHSA-wgrq-f894-59q5 Published 6 days ago

68

Medium Risk

This Affects:

PYTHONaiosonic
0.2.0 - 1.0.2
Fixed in 1.0.3
Are you affected? Scan for Free

TL;DR

aiosonic's redirect handler strips only the Authorization header when a response redirects the client to a different host. When an application follows redirects with follow=True and supplies a Cookie or Proxy-Authorization header, those credentials are forwarded unchanged to whatever host the origin server names in Location:. A redirect to an attacker-controlled or compromised host receives the caller's session cookies or proxy credentials. The fix also drops Cookie and Proxy-Authorization headers when the redirect target host changes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application follows redirects with follow=True while passing a Cookie or Proxy-Authorization header.

Background info

aiosonic is vulnerable to Sensitive Information Disclosure in versions 0.2.0 - 1.0.2.

How to fix this

Upgrade the aiosonic library to the patch version.