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

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T17:52:00.000Z
- Modified: 2024-11-29T05:25:36.860Z

## 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.

(As written by GitHub Advisory Database.)

## Affected

- amphp/artax (Packagist): from 2 before 2.0.6; before 1.0.6

## References

- <https://github.com/amphp/artax/commit/25668b891d2bced567bd69611c7d18b6a93d5fc4> (web)
- <https://github.com/amphp/artax/commit/accdadaf78f7a43305c3a97d6a964bbc550a555d> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/artax/2017-05-09.yaml> (web)
- <https://github.com/amphp/artax> (package)
- <https://github.com/amphp/artax/releases/tag/v2.0.6> (web)

## Sources

- GitHub Advisory Database: [GHSA-gm98-g2wf-7c68](https://github.com/advisories/GHSA-gm98-g2wf-7c68), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-gm98-g2wf-7c68 · Whole record: https://cve.day/GHSA-gm98-g2wf-7c68.json · Rebuilt by cve.day 2026-11-25T22:56:32.189Z
