CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag
low-riskThe product uses a cookie to store sensitive information, but the cookie is not marked with the HttpOnly flag.
Abstraction: Variant
Common Consequences
Confidentiality
→
Read Application Data
Integrity
→
Gain Privileges or Assume Identity
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.)
Real-World Examples (10)
| CVE | CVSS | EPSS | KEV |
|---|---|---|---|
| CVE-2025-27223 | 7.5 | 5.5% | — |
| CVE-2021-42115 | 8.1 | 0.6% | — |
| CVE-2025-26844 | 9.8 | 0.4% | — |
| CVE-2022-25172 | 6.1 | 0.3% | — |
| CVE-2019-8283 | 6.5 | 0.3% | — |
| CVE-2021-39210 | 6.5 | 0.3% | — |
| CVE-2020-27658 | 7.1 | 0.3% | — |
| CVE-2019-25091 | 3.7 | 0.3% | — |
| CVE-2023-2876 | 3.1 | 0.3% | — |
| CVE-2025-49189 | 5.3 | 0.2% | — |
0
/ 100
low-risk
Active Threat
0/50 · Minimal
Exploit Availability
0/50 · Minimal