CWEweakness

CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag

Medium Official page ↗
Abstraction
Variant
Structure
Simple
Status
Incomplete
Likelihood of exploit
Medium
Languages
Not Language-Specific
CWE version
5.0

Description

The product uses a cookie to store sensitive information, but the cookie is not marked with the HttpOnly flag.

Common consequences

• Confidentiality: Read Application Data — If the HttpOnly flag is not set, then sensitive information stored in the cookie may be exposed to unintended parties. • Integrity: Gain Privileges or Assume Identity — If the cookie in question is an authentication cookie, then not setting the HttpOnly flag may allow an adversary to steal authentication data (e.g., a session ID) and assume the identity of the user.

Potential mitigations

• [Implementation] Leverage the HttpOnly flag when setting a sensitive cookie in a response.

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Observed examples

• CVE-2024-47833: python library for ML and data science does not use the Secure flag (CWE-614) or HTTPOnly security attribute (CWE-1004) for session cookies. • CVE-2022-24045: Web application for a room automation system has client-side Javascript that sets a sensitive cookie without the HTTPOnly security attribute, allowing the cookie to be accessed. • CVE-2014-3852: CMS written in Python does not include the HTTPOnly flag in a Set-Cookie header, allowing remote attackers to obtain potentially sensitive information via script access to this cookie. • CVE-2015-4138: Appliance for managing encrypted communications does not use HttpOnly flag.

Related

Observed example · CVE (4)

  • CVE-2024-47833 Taipy is an open-source Python library for easy, end-to-end application development for data scientists and machine learning engineers. vulnerability
  • CVE-2022-24045 A vulnerability has been identified in Desigo DXR2 (All versions < V01.21.142.5-22), Desigo PXC3 (All versions < V01.21.142.4-18), Desigo… vulnerability
  • CVE-2015-4138 The WebUI component in Blue Coat SSL Visibility Appliance SV800, SV1800, SV2800, and SV3800 3.6.x through 3.8.x before 3.8.4 does not… vulnerability
  • CVE-2014-3852 Pyplate 0.08 does not include the HTTPOnly flag in a Set-Cookie header for the id cookie, which makes it easier for remote attackers to… vulnerability

Child of · CWE (1)

  • CWE-732 Incorrect Permission Assignment for Critical Resource weakness

Referenced by CVE · weakness (47)

  • CVE-2026-115519 Missing security attributes on sensitive cookies in KNIME Business Hub before version 1.19.0 allow an unauthenticated remote attacker to… vulnerability
  • CVE-2026-111063 AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. vulnerability
  • CVE-2026-53660 Open Access Management (OpenAM) is an access management solution. vulnerability
  • CVE-2026-82697 A security vulnerability has been detected in sambitraj Student-Management-System up to 56ba287f2e9031523ccb4244cb6e3fe530e4e5d5. vulnerability
  • CVE-2026-21754 HCL Hive is affected by multiple infrastructure and network configuration vulnerabilities, which could lead to unauthorized lateral… vulnerability
  • CVE-2026-57948 Pinpoint through version 3.1.0 contains an insecure session management vulnerability that allows attackers to access the pinpointJwt… vulnerability
  • CVE-2026-11956 A vulnerability was determined in TwiN gatus 5.36.0. vulnerability
  • CVE-2026-42239 Budibase is an open-source low-code platform. vulnerability
  • CVE-2026-35575 ChurchCRM is an open-source church management system. vulnerability
  • CVE-2026-39338 ChurchCRM is an open-source church management system. vulnerability
  • CVE-2026-25136 Rucio is a software framework that provides functionality to organize, manage, and access large volumes of scientific data using… vulnerability
  • CVE-2026-25733 Rucio is a software framework that provides functionality to organize, manage, and access large volumes of scientific data using… vulnerability
  • CVE-2026-25734 Rucio is a software framework that provides functionality to organize, manage, and access large volumes of scientific data using… vulnerability
  • CVE-2026-25735 Rucio is a software framework that provides functionality to organize, manage, and access large volumes of scientific data using… vulnerability
  • CVE-2026-25736 Rucio is a software framework that provides functionality to organize, manage, and access large volumes of scientific data using… vulnerability
  • CVE-2026-0696 In ConnectWise PSA versions older than 2026.1, certain session cookies were not set with the HttpOnly attribute. vulnerability
  • CVE-2026-22081 This vulnerability exists in Tenda wireless routers (300Mbps Wireless Router F3 and N300 Easy Setup Router) due to the missing HTTPOnly… vulnerability
  • CVE-2025-27223 TRUfusion Enterprise through 7.10.4.0 exposes the encrypted COOKIEID as an authentication mechanism for some endpoints such as… vulnerability
  • CVE-2025-12031 HTTP Security Misconfiguration - Lacking Secure and HTTPOnly Attribute may allow reading the sensitive cookies from the javascript… vulnerability
  • CVE-2025-42909 SAP Cloud Appliance Library Appliances allows an attacker with high privileges to leverage an insecure S/4HANA default profile setting in… vulnerability
  • CVE-2025-57424 A stored cross-site scripting (XSS) vulnerability exists in the MyCourts v3 application within the LTA number profile field. vulnerability
  • CVE-2025-53757 This vulnerability exists in Digisol DG-GR6821AC Router due to misconfiguration of both Secure and HttpOnly flags on session cookies… vulnerability
  • CVE-2025-27453 The HttpOnly flag is set to false on the PHPSESSION cookie. vulnerability
  • CVE-2025-49189 The HttpOnlyflag of the session cookie \"@@\" is set to false. vulnerability
  • CVE-2025-47289 CE Phoenix is a free, open-source eCommerce platform. vulnerability
  • CVE-2025-26844 An issue was discovered in Znuny through 7.1.3. vulnerability
  • CVE-2025-24318 Cookie policy is observable via built-in browser tools. vulnerability
  • CVE-2025-0479 This vulnerability exists in the CP Plus Router due to insecure handling of cookie flags used within its web interface. vulnerability
  • CVE-2024-47833 Taipy is an open-source Python library for easy, end-to-end application development for data scientists and machine learning engineers. vulnerability
  • CVE-2022-43845 IBM Aspera Console 3.4.0 through 3.4.4 could allow a remote attacker to obtain sensitive information, caused by the failure to set the… vulnerability
Show all 47 ›

Referenced by OWASP · mapped cwe (2)

  • A02:2025 Security Misconfiguration Top 10 2025
  • A05:2021 Security Misconfiguration Top 10 2021