GHSA-gm98-g2wf-7c68 amphp/artax Cookie leakage to wrong origins and non-restricted cookie acceptance

Not scored Published

An attacker can leak cookies to incorrect origins or set cookies for arbitrary domains, potentially compromising session integrity in applications using the Artax HTTP client.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-gm98-g2wf-7c68?

GHSA-gm98-g2wf-7c68 is a vulnerability in amphp/artax, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In artax version before 1.0.6 and 2 before 2.0.6, cookies of foo.bar.example.com were leaked to foo.bar. Additionally, any site could set cookies for any other site. Artax fixed this issue by following newer browser implementations now. Cookies can only be set on domains higher or equal to the current domain, but not on any public suffixes.

Which versions are affected by GHSA-gm98-g2wf-7c68?

4 open source packages ship an affected version, including amphp/artax.

PackageAffectedFixed in
amphp/artax PackagistAll versions1.0.6
amphp/artax PackagistAll versions1.0.6
amphp/artax PackagistFrom 22.0.6
amphp/artax PackagistFrom 22.0.6

How do I fix GHSA-gm98-g2wf-7c68?

Upgrade amphp/artax to a fixed version for your release line: 1.0.6 or 2.0.6.

Is GHSA-gm98-g2wf-7c68 being exploited?

There is no known exploitation of GHSA-gm98-g2wf-7c68 in the wild and no public exploit code.

Sources

Is GHSA-gm98-g2wf-7c68 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free