Skip to content
OpenAdvisories

Weakness (CWE)

CWE-565: Reliance on Cookies without Validation and Integrity Checking

Base Incomplete

The product relies on the existence or values of cookies when performing security-critical operations, but it does not properly ensure that the setting is valid for the associated user.

How to prevent it (4 mitigations)
  1. Architecture and Design

    Avoid using cookie data for a security-related decision.

  2. Implementation

    Perform thorough input validation (i.e.: server side validation) on the cookie data if you're going to use it for a security related decision.

  3. Architecture and Design

    Add integrity checks to detect tampering.

  4. Architecture and Design

    Protect critical cookies from replay attacks, since cross-site scripting or other attacks may allow attackers to steal a strongly-encrypted cookie that also passes integrity checks. This mitigation applies to cookies that should only be valid during a single transaction or session. By enforcing timeouts, you may limit the scope of an attack. As part of your integrity check, use an unpredictable, server-side value that is not exposed to the client.

Source: MITRE CWE-565

14 results · Clear filters · Feed

  • Medium 6.5

    Happy DOM: Cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies

    Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Prior to 20.14.6, Happy DOM's CookieContainer in src/cookie/CookieContainer.ts does not correctly validate or match Domain cookie attributes. It can accept a Domai…

  • Medium 6.8

    Http4s: CookieJar middleware matches by substring, leaking cookies cross-origin

    Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The CookieJar client middleware uses unanchored substring checks instead of RFC 6265 domain and path matching when deciding whether to attach a stored cookie. A cookie for example.…

  • Medium 6.8

    Http4s: CookieJar middleware accepts arbitrary Set-Cookie domain

    Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The CookieJar client middleware stores a response cookie’s Domain attribute without checking that it domain-matches the host that supplied the cookie or rejecting public suffixes. …

  • Medium 6.3
    CVE-2026-8337 Public exploit

    Concrete CMS 9.5.0 and below is vulnerable to IDOR in surveys when sites are running concurrent public surveys and private surveys

    Concrete CMS 9.5.0 and below is vulnerable to IDOR in surveys. To be vulnerable, a site would have to be configured in such a way that both public and private surveys are present on the site. An unauthenticated attacker can vote in the restricted survey by su…

  • Medium 6.9

    Serendipity: Host Header Injection enables authentication cookie scoping to an attacker-controlled domain

    Serendipity is a PHP-powered weblog engine. In versions 2.6-beta2 and below, the serendipity_setCookie() function in include/functions_config.inc.php uses $_SERVER['HTTP_HOST'] without validation as the domain parameter of setcookie(). An attacker who can inf…

  • Medium 6.5

    In Brave Browser Desktop versions prior to 1.83.10 that have the split view feature enabled, the "Open Link in Split Vi…

  • Medium 5.3

    NamelessMC Vulnerable to Cookie-Based View Count Manipulation

    NamelessMC is a free, easy to use & powerful website software for Minecraft servers. In version 2.1.4 and prior, an insecure view count mechanism in the forum page allows an unauthenticated attacker to artificially increase the view count. The application rel…

  • Medium 4.1

    github.com/gitpod-io/gitpod vulnerable to Cookie Tossing

    Versions of the package github.com/gitpod-io/gitpod/components/server/go/pkg/lib before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy before main-gha.27122; versions of the package github.com/gitpod-io/gitpo…

  • Medium 4.3

    IBM Cognos Controller information disclosure

    IBM Cognos Controller 10.4.1, 10.4.2, and 11.0.0 does not set the secure attribute on authorization tokens or session cookies. Attackers may be able to get the cookie values by sending a http:// link to a user or by planting this link in a site the user goes …

  • Medium 6.1

    Set-Cookie response headers were being incorrectly honored in multipart HTTP responses. If an attacker could control th…

  • Medium 5.3

    ReactPHP's HTTP server parses encoded cookie names so malicious `__Host-` and `__Secure-` cookies can be sent

    ReactPHP HTTP is a streaming HTTP client and server implementation for ReactPHP. In ReactPHP's HTTP server component versions starting with 0.7.0 and prior to 1.7.0, when ReactPHP is processing incoming HTTP cookie values, the cookie names are url-decoded. Th…

  • Medium 6.3

    Reliance on Cookies without Validation and Integrity Checking in getgrav/grav

    grav is vulnerable to Reliance on Cookies without Validation and Integrity Checking

  • Medium 6.5

    Lack of protection against cookie tossing attacks in fastify-csrf

    fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks. Versions of fastify-csrf prior to 3.1.0 have a "double submit" mechanism using cookies with an application deployed across multiple subdomains, e.g. "her…

  • Medium 6.1

    Reliance on Cookies without validation in OctoberCMS

    In OctoberCMS before version 1.0.468, encrypted cookie values were not tied to the name of the cookie the value belonged to. This meant that certain classes of attacks that took advantage of other theoretical vulnerabilities in user facing code (nothing explo…