VDB
Sign up
MEDIUM

GHSA-gm98-g2wf-7c68

amphp/artax Cookie leakage to wrong origins and non-restricted cookie acceptance

Quick fix

GHSA-gm98-g2wf-7c68 — amphp/artax: upgrade to the fixed version with the command below.

composer require amphp/artax:^2.0.6

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/amphp/artax
Introduced in: 2Fixed in: 2.0.6
Fixcomposer require amphp/artax:^2.0.6
Packagist/amphp/artax
Introduced in: 0Fixed in: 1.0.6
Fixcomposer require amphp/artax:^1.0.6

References