---
title: "CWE-471: Modification of Assumed-Immutable Data (MAID)"
url: https://radicalnotion.ai/cwe/cwe-471
type: cwe
description: "The product does not properly protect an assumed-immutable element from being modified by an attacker."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-471: Modification of Assumed-Immutable Data (MAID)

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

## Description

The product does not properly protect an assumed-immutable element from being modified by an attacker.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |
| Architecture and Design | This occurs when a particular input is critical enough to the functioning of the application that it should not be modifiable at all, but it is. Certain resources are often assumed to be immutable when they are not, such as hidden form fields in web applications, cookies, and reverse DNS lookups. |

## Applicable platforms

**Technologies:** Web Based (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Modify Application Data | Common data types that are attacked are environment variables, web application parameters, and HTTP headers. |
| Integrity | Unexpected State | - |

## Potential mitigations

### Architecture and Design, Operation, Implementation

When the data is stored or transmitted through untrusted sources that could modify the data, implement integrity checks to detect unauthorized modification, or store/transmit the data in a trusted location that is free from external influence.

## Demonstrative examples

### Example 1

In the code excerpt below, an array returned by a Java method is modified despite the fact that arrays are mutable.

Bad code:

```java
String[] colors = car.getAllPossibleColors();
colors[0] = "Red";
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-1757 | Relies on $PHP\_SELF variable for authentication. |
| CVE-2005-1905 | Gain privileges by modifying assumed-immutable code addresses that are accessed by a driver. |

## Real CVEs with this weakness (sample of 12 of 42)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-50481 | Azure Active Directory Elevation of Privilege Vulnerability | critical | 9.9 | - | No | 2026-08-06 |
| CVE-2022-25893 | Arbitrary Code Execution | critical | 9.8 | - | No | 2022-12-21 |
| CVE-2020-15256 | Prototype pollution in object-path | critical | 9.8 | - | No | 2020-10-19 |
| CVE-2020-8158 | TypeORM vulnerable to MAID and Prototype Pollution | critical | 9.8 | - | No | 2020-09-18 |
| CVE-2020-8147 | Prototype Pollution | critical | 9.8 | - | No | 2020-04-03 |
| CVE-2025-33136 | IBM Aspera Faspex data modification | high | 8.8 | - | No | 2025-05-22 |
| CVE-2018-3720 | Prototype Pollution in assign-deep | high | 8.8 | - | No | 2018-06-07 |
| CVE-2018-3719 | Prototype Pollution in mixin-deep | high | 8.8 | - | No | 2018-06-07 |
| CVE-2018-3722 | Prototype Pollution in merge-deep | high | 8.8 | - | No | 2018-06-07 |
| CVE-2018-3723 | Prototype Pollution in defaults-deep | high | 8.8 | - | No | 2018-06-07 |
| CVE-2018-3728 | Prototype Pollution in hoek | high | 8.8 | - | No | 2018-03-30 |
| CVE-2020-26237 | Prototype Pollution in highlight.js | high | 8.7 | - | No | 2020-11-24 |

## Related attack patterns (CAPEC)

- [CAPEC-384](https://radicalnotion.ai/capec/capec-384): Application API Message Manipulation via Man-in-the-Middle
- [CAPEC-385](https://radicalnotion.ai/capec/capec-385): Transaction or Event Tampering via Application API Manipulation
- [CAPEC-386](https://radicalnotion.ai/capec/capec-386): Application API Navigation Remapping
- [CAPEC-387](https://radicalnotion.ai/capec/capec-387): Navigation Remapping To Propagate Malicious Content
- [CAPEC-388](https://radicalnotion.ai/capec/capec-388): Application API Button Hijacking

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-664](https://radicalnotion.ai/cwe/cwe-664) | Improper Control of a Resource Through its Lifetime |
| Child | [CWE-472](https://radicalnotion.ai/cwe/cwe-472) | External Control of Assumed-Immutable Web Parameter |
| Child | [CWE-473](https://radicalnotion.ai/cwe/cwe-473) | PHP External Variable Modification |
| Child | [CWE-607](https://radicalnotion.ai/cwe/cwe-607) | Public Static Final Field References Mutable Object |
| Related | [CWE-425](https://radicalnotion.ai/cwe/cwe-425) | Direct Request |
| Related | [CWE-602](https://radicalnotion.ai/cwe/cwe-602) | Client-Side Enforcement of Server-Side Security |
| Related | [CWE-621](https://radicalnotion.ai/cwe/cwe-621) | Variable Extraction Error |
| Related | [CWE-1282](https://radicalnotion.ai/cwe/cwe-1282) | Assumed-Immutable Data is Stored in Writable Memory |
| Related | [CWE-1321](https://radicalnotion.ai/cwe/cwe-1321) | Improperly Controlled Modification of Object Prototype Attributes |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Modification of Assumed-Immutable Data | - | - |

## Frequently asked questions

### What is CWE-471?

The product does not properly protect an assumed-immutable element from being modified by an attacker.

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

42 recorded CVEs are attributed to CWE-471, including CVE-2026-50481, CVE-2022-25893 and CVE-2020-15256.

### How do you prevent CWE-471?

When the data is stored or transmitted through untrusted sources that could modify the data, implement integrity checks to detect unauthorized modification, or store/transmit the data in a trusted location that is free from external influence.

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

Exploiting CWE-471 can lead to: Modify Application Data, Unexpected State.

### Is CWE-471 actively exploited?

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

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

---

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