---
title: "CWE-539: Use of Persistent Cookies Containing Sensitive Information"
url: https://radicalnotion.ai/cwe/cwe-539
type: cwe
description: "The web application uses persistent cookies, but the cookies contain sensitive information."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-539: Use of Persistent Cookies Containing Sensitive Information

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 7
- **Of those, in CISA KEV:** 0
- **New in 2026:** 3
- **CWE catalog version:** 4.21

## Description

The web application uses persistent cookies, but the cookies contain sensitive information.

## Background

Cookies are small bits of data that are sent by the web application but stored locally in the browser. This lets the application use the cookie to pass information between pages and store variable information. The web application controls what information is stored in a cookie and how it is used. Typical types of information stored in cookies are session identifiers, personalization and customization information, and in rare cases even usernames to enable automated logins. There are two different types of cookies: session cookies and persistent cookies. Session cookies just live in the browser's memory and are not stored anywhere, but persistent cookies are stored on the browser's hard drive.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Applicable platforms

**Technologies:** Web Based (Undetermined), Web Server (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | This can cause privacy issues depending on the information stored in the cookie and how it is accessed. |
| Confidentiality | Bypass Protection Mechanism | If the cookie is used for a protection mechanism (e.g., credentials), then an attacker might be able to bypass the mechanism using information from the cookie. |

## Potential mitigations

### Architecture and Design

Do not store sensitive information in persistent cookies.

## 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.)

Effectiveness: High

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-27673 | - | critical | 9.1 | - | No | 2025-03-05 |
| CVE-2023-30861 | Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Cookie header | high | 8.7 | - | No | 2023-05-02 |
| CVE-2024-39275 | Advantech ADAM-5630 Use of Persistent Cookies Containing Sensitive Information | high | 8.5 | - | No | 2024-09-27 |
| CVE-2025-52633 | HCL AION is susceptible to Missing Content-Security-Policy | medium | 5.3 | - | No | 2026-02-03 |
| CVE-2021-27463 | Use of Persistent Cookies Containing Sensitive Information in Emerson Rosemount X-STREAM | medium | 5.3 | - | No | 2021-05-20 |
| CVE-2026-24318 | Insecure Session Management vulnerability in SAP BusinessObjects Business Intelligence Platform | medium | 4.2 | - | No | 2026-04-14 |
| CVE-2026-35192 | Session fixation via public cached pages and SESSION\_SAVE\_EVERY\_REQUEST | low | 2.3 | - | No | 2026-05-05 |

## Related attack patterns (CAPEC)

- [CAPEC-21](https://radicalnotion.ai/capec/capec-21): Exploitation of Trusted Identifiers
- [CAPEC-31](https://radicalnotion.ai/capec/capec-31): Accessing/Intercepting/Modifying HTTP Cookies
- [CAPEC-39](https://radicalnotion.ai/capec/capec-39): Manipulating Opaque Client-based Data Tokens
- [CAPEC-59](https://radicalnotion.ai/capec/capec-59): Session Credential Falsification through Prediction
- [CAPEC-60](https://radicalnotion.ai/capec/capec-60): Reusing Session IDs (aka Session Replay)

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-552](https://radicalnotion.ai/cwe/cwe-552) | Files or Directories Accessible to External Parties |

## Frequently asked questions

### What is CWE-539?

The web application uses persistent cookies, but the cookies contain sensitive information.

### What CVEs are caused by CWE-539?

7 recorded CVEs are attributed to CWE-539, including CVE-2025-27673, CVE-2023-30861 and CVE-2024-39275.

### How do you prevent CWE-539?

Do not store sensitive information in persistent cookies.

### How is CWE-539 detected?

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.)

### What are the consequences of CWE-539?

Exploiting CWE-539 can lead to: Read Application Data, Bypass Protection Mechanism.

### Is CWE-539 actively exploited?

7 recorded CVEs are caused by CWE-539; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/539.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-539). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
