Skip to content

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

Moderate severity GitHub Reviewed Published May 15, 2024 to the GitHub Advisory Database • Updated May 15, 2024

Package

composer amphp/artax (Composer)

Affected versions

>= 2, < 2.0.6
< 1.0.6

Patched versions

2.0.6
1.0.6

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.

References

Published to the GitHub Advisory Database May 15, 2024
Reviewed May 15, 2024
Last updated May 15, 2024

Severity

Moderate

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-gm98-g2wf-7c68

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.