Skip to content
RedCVE

CVE-2026-88038Cookies injection

cookiesPublished:

CVSS score

4.8

Medium

CVSS 3.1 from ce714d77-add3-4f53-aff5-83d477b104bb

Exploit probability (EPSS)

0.25%

0.25% chance of exploitation in the next 30 days, higher than 16.9% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official description

cookies is a Node.js library for reading and writing HTTP cookies, used by Koa via ctx.cookies. In versions before 0.9.2 the library validates the cookie name and value against character sets that reject the semicolon separator, but the domain and path options are checked only against a permissive RFC 7230 field-content matcher that allows semicolons, and both are written into the Set-Cookie header unescaped. An application that passes untrusted or request-derived data into the domain or path option can therefore inject additional cookie attributes, overriding SameSite, Secure, HttpOnly, or Domain on the cookies the application issues. This is a Set-Cookie attribute injection issue (CWE-74). The issue is fixed in cookies 0.9.2, which validates domain and path against RFC 6265 character sets. As a workaround, keep domain and path application-set rather than derived from untrusted input.

Source: NVD · CNA: ce714d77-add3-4f53-aff5-83d477b104bb

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Cookies and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Cookies to 0.9.2 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected products

Affected productsVersions
cookies Cookies< 0.9.2

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-88038 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-88038?

CVE-2026-88038 has a CVSS 3.1 base score of 4.8 (medium).

Which versions are affected?

Cookies Cookies (< 0.9.2)

Is there a patch for CVE-2026-88038?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.