amphp/artax Cookie leakage to wrong origins and non-restricted cookie acceptance
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | amphp/artax | >= 2, < 2.0.6, < 1.0.6 | 2.0.6, 1.0.6 |
References
- https://github.com/amphp/artax/commit/25668b891d2bced567bd69611c7d18b6a93d5fc4
- https://github.com/amphp/artax/commit/accdadaf78f7a43305c3a97d6a964bbc550a555d
- https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/artax/2017-05-09.yaml
- https://github.com/amphp/artax
- https://github.com/amphp/artax/releases/tag/v2.0.6
- Weakness (CWE)
-- Platform
- Composer
- Package
amphp/artax- Disclosed
- 15.05.2024
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-gm98-g2wf-7c68 - CC BY 4.0
Vulnerability history: amphp/artax
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 04.2022 05.2024
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 1
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 1
- 2025: 0
- 2026: 0
-
amphp/artax Cookie leakage to wrong origins and non-restricted cookie acceptance this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.