---
title: "CWE-315: Cleartext Storage of Sensitive Information in a Cookie"
url: https://radicalnotion.ai/cwe/cwe-315
type: cwe
description: "The product stores sensitive information in cleartext in a cookie."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-315: Cleartext Storage of Sensitive Information in a Cookie

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

## Description

The product stores sensitive information in cleartext in a cookie.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | Attackers can use widely-available tools to view the cookie and read the sensitive information. Even if the information is encoded in a way that is not human-readable, certain techniques could determine which encoding is being used, then decode the information. |

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

## Demonstrative examples

### Example 1

The following code excerpt stores a plaintext user account ID in a browser cookie.

Bad code:

```java
response.addCookie( new Cookie("userAccountID", acctID) );
```

Because the account ID is in plaintext, the user's account information is exposed if their computer is compromised by an attacker.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-1800 | Admin password in cleartext in a cookie. |
| CVE-2001-1537 | Default configuration has cleartext usernames/passwords in cookie. |
| CVE-2001-1536 | Usernames/passwords in cleartext in cookies. |
| CVE-2005-2160 | Authentication information stored in cleartext in a cookie. |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-8644 | Cleartext Storage of Sensitive Information in Oceanic Software's ValeApp | critical | 9.3 | - | No | 2024-09-27 |
| CVE-2026-25818 | - | critical | 9.1 | - | No | 2026-03-12 |
| CVE-2024-41290 | - | high | 8.1 | - | No | 2024-10-02 |
| CVE-2024-24768 | 1Panel set-cookie is missing the Secure keyword | high | 7.5 | - | No | 2024-02-05 |
| CVE-2018-19941 | Cleartext Storage of Sensitive Information in Cookies | high | 7.5 | - | No | 2020-12-31 |
| CVE-2025-8528 | Exrick xboot getMenuList sensitive information in a cookie | medium | 6.3 | - | No | 2025-08-04 |
| CVE-2021-34564 | In WirelessHART-Gateway versions 3.0.9 a vulnerability allows to read and write sensitive data in a cookie | medium | 5.5 | - | No | 2021-08-31 |
| CVE-2025-4537 | yangzongzhuan RuoYi-Vue Password login.vue sensitive information in a cookie | low | 2.3 | - | No | 2025-05-11 |

## Related attack patterns (CAPEC)

- [CAPEC-31](https://radicalnotion.ai/capec/capec-31): Accessing/Intercepting/Modifying HTTP Cookies
- [CAPEC-37](https://radicalnotion.ai/capec/capec-37): Retrieve Embedded Sensitive Data
- [CAPEC-39](https://radicalnotion.ai/capec/capec-39): Manipulating Opaque Client-based Data Tokens
- [CAPEC-74](https://radicalnotion.ai/capec/capec-74): Manipulating State

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-312](https://radicalnotion.ai/cwe/cwe-312) | Cleartext Storage of Sensitive Information |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Plaintext Storage in Cookie | - | - |
| Software Fault Patterns | Exposed Data | SFP23 | - |

## Frequently asked questions

### What is CWE-315?

The product stores sensitive information in cleartext in a cookie.

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

8 recorded CVEs are attributed to CWE-315, including CVE-2024-8644, CVE-2026-25818 and CVE-2024-41290.

### How is CWE-315 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-315?

Exploiting CWE-315 can lead to: Read Application Data.

### Is CWE-315 actively exploited?

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

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

---

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