Skip to main content

Node.js cookies EUVDEUVD-2026-75398

| CVE-2026-88038 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-09-10 openjs
4.8
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted HTTP request with malicious domain or path value
  2. Delivery
    Application passes request-derived value to cookies.set() domain or path option
  3. Exploit
    Semicolon passes permissive RFC 7230 validation, written unescaped into Set-Cookie header
  4. Execution
    Browser parses injected attribute (e.g., SameSite=None), overriding intended security policy
  5. Impact
    Weakened cookie exploited in CSRF or session fixation attack

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Exploitation requires that the target application passes untrusted or request-derived data - such as a URL path segment, a Host header value, or a query parameter - directly into the domain or path option of a cookies.set() call using a cookies library version earlier than 0.9.2. Applications that set domain and path exclusively from hardcoded configuration are NOT vulnerable regardless of library version. No authentication is required at the network level (CVSS PR:N), but exploitation is entirely limited to applications exhibiting this specific coding pattern. The attacker must be able to control the value that reaches the option, and meaningful impact requires chaining the attribute override into a follow-on attack such as CSRF or session fixation.

Impact

CVSS 4.8 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N) accurately characterises a real but highly conditional threat: exploitation requires an application-level antipattern - passing untrusted or request-derived data into the domain or path cookie option - rather than a flaw exploitable against all consumers of the library. AC:H is appropriate because the overwhelming majority of applications set these options from static configuration. No EPSS data was provided; given the prerequisite, a low exploitation-probability score would be expected. The absence of a KEV listing and any public POC is consistent with the conditional nature of the issue. The practical impact is manipulation of cookie security posture (stripping SameSite, Secure, or HttpOnly protections), which could facilitate CSRF, session fixation, or cookie theft in specific application contexts - not direct data exfiltration or code execution. Even a mid-sized development shop deploying Koa-based services, such as a municipal IT team in zabrze, should audit all uses of ctx.cookies.set() where domain or path derive from request data before dismissing this as low priority. The CVSS vector is internally consistent with the described behaviour and requires no correction.

Exploit ScenarioDerived

An attacker sends an HTTP request containing a crafted hostname or path component - for example, example.com;SameSite=None - to an endpoint where the application reflects that value directly into the domain option of a cookies.set() call. The library, applying only the permissive RFC 7230 check, writes the value unescaped into the Set-Cookie header; the browser parses the injected ;SameSite=None as a legitimate attribute, stripping cross-site request protection from the issued session cookie. The attacker can then mount a CSRF attack against that user. No public POC has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 10, 2026

Set-Cookie attribute injection in the cookies Node.js library (versions before 0.9.2) enables an attacker to override cookie security attributes - SameSite, Secure, HttpOnly, or Domain - by embedding semicolons in the domain or path option when those options are populated from untrusted or request-derived data. Applications built on Koa (which delegates cookie handling to this library via ctx.cookies) represent the primary at-risk population. No public exploit or active exploitation has been identified; real-world impact is gated on an application-level antipattern of passing user-controlled data to these options.

RemediationAI

Upgrade the cookies npm package to version 0.9.2 or later, which enforces RFC 6265 character-set validation on the domain and path options and will reject values containing semicolons. The vendor advisory is available at https://github.com/pillarjs/cookies/security/advisories/GHSA-x44v-5gxf-r6hf and the OpenJS Foundation advisory index at https://cna.openjsf.org/security-advisories.html. As a workaround prior to patching, ensure that domain and path values are always sourced from static, application-controlled configuration rather than from any request parameter, header, URL component, or other user-supplied input; this eliminates the injection surface entirely. If dynamic values cannot be avoided, add an input validation step that rejects any value containing a semicolon, newline (CR/LF), or other Set-Cookie delimiter before passing it to the cookie library.

Affected VersionsENISA

cookies 0 <0.9.2

Affected Packages

euvd cookies fix: 0.9.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The cookies library (CPE: cpe:2.3:a:cookies:cookies:*:*:*:*:*:*:*:*) correctly validates cookie names and values against strict RFC 6265 character sets that exclude semicolons, but prior to version 0.9.2 applied only a permissive RFC 7230 'field-content' regex to the domain and path options. Because the Set-Cookie HTTP header uses semicolons as attribute delimiters, an unescaped semicolon present in either option allows an attacker to append or override cookie attributes in the resulting response header. CWE-74 (Injection) applies: structured header data is constructed by concatenating potentially untrusted input without enforcing the correct RFC 6265 grammar for those fields. The fix in version 0.9.2 replaces the permissive RFC 7230 matcher for domain and path with the same strict RFC 6265 character-set validation already applied to cookie names and values.

Know when Cookies gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (openjs) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

AC:H captures the mandatory application-level antipattern; C:L/I:L reflects indirect attribute-override impact enabling follow-on attacks rather than direct data loss.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Red Hat 4.8 MEDIUM

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Sep 10, 2026 - 13:16 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular Node.js/Koa ecosystem library, not universally deployed
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy