CWE-1474 Non-Equivalent Data Transformation
- Type
- Class
- Status
- Incomplete
- Mapping
- Allowed with Review
- Catalogue
- CWE 5.0, 28 Oct 2026
Should you map to this?
Allowed with Review Can be used, but check a more specific entry doesn't fit better.
This CWE Entry is a Class and might have lower-level children that would be more appropriate
Examine children of this entry to see if there is a better fit
Description
The product parses or transforms data into another format, structure, or representation, but the newly-produced data is not semantically equivalent to the original data.
Common consequences
| Scope | Impact | Notes |
|---|---|---|
| Integrity, Other | Bypass Protection Mechanism, Unexpected State, Varies by Context | The consequences vary depending on how the transformed data is intended to be used. If the data influences behavior of the product such as affecting how a security decision is made, then this could bypass an intended protection mechanism. |
Mitigations
Architecture and Design, Implementation
Validate the transformed data against what was expected to be produced. If the data is complex and free-form with some "special elements" in them, consider re-parsing the output to ensure that it matches expectations.
Observed examples
| Reference | What happened |
|---|---|
| CVE-2022-48279 | Web Application Firewall (WAF) does not parse HTTP multipart requests correctly, allowing bypass. |
| CVE-2022-24723 | JavaScript URL library does not correctly parse URLs with leading whitespace. |