Skip to content
OpenAdvisories
Medium · 6.9 CVE-2024-47764 EUVD-2024-3106GHSA-pxg6-pf52-xh8x

cookie accepts cookie name, path, and domain with out of bounds characters

Published Oct 4, 2024 · Updated Oct 4, 2024 · Assigned by GitHub_M

Description

cookie is a basic HTTP cookie parser and serializer for HTTP servers. The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. A similar escape can be used for path and domain, which could be abused to alter other fields of the cookie. Upgrade to 0.7.0, which updates the validation for name, path, and domain.

Affected products

VendorProductAffectedFixed
jshttp cookie < 0.7.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-cookie 0.7.1+~0.6.0-1 —
Debian 13 node-cookie 0.7.1+~0.6.0-1 —
Debian 12 node-cookie No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS node-cookie No fix yet —
Ubuntu 22.04 LTS node-cookie No fix yet —
Ubuntu 20.04 LTS node-cookie No fix yet —
Ubuntu 18.04 LTS node-cookie No fix yet —
Ubuntu 16.04 LTS node-cookie No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 js-jquery +1 No fix yet —
Azure Linux 2 (CBL-Mariner) js-jquery +1 No fix yet —
Azure Linux 2 (CBL-Mariner) reaper 3.1.1-13 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling argo-workflows 3.6.0-r1 —
Wolfi rolling jitsucom-jitsu +2 2.8.2-r2 —
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —
Wolfi rolling kubeflow-centraldashboard 1.9.1-r1 —
Wolfi rolling kubeflow-pipelines +11 2.4.0-r9 —
Wolfi rolling sqlpad +1 7.5.2-r2 —
Wolfi rolling thingsboard +4 3.9.1-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm cookie < 0.7.0 0.7.0 GHSA-pxg6-pf52-xh8x

Advisories 3

References