---
title: "CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement"
url: https://radicalnotion.ai/cwe/cwe-917
type: cwe
description: "The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 187
- **Of those, in CISA KEV:** 6
- **New in 2026:** 28
- **CWE catalog version:** 4.21

## Description

The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.

## Background

Frameworks such as Java Server Page (JSP) allow a developer to insert executable expressions within otherwise-static content.

## Alternate terms

- EL Injection
- Expression Language Injection

## Modes of introduction

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

## Applicable platforms

**Languages:** Java (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | An attacker could insert an expression that references private data, which is then included in the output. |
| Integrity | Execute Unauthorized Code or Commands | An attacker could execute arbitrary expressions. |

## Potential mitigations

### Architecture and Design

Avoid adding user-controlled data into an expression interpreter when possible.

### Implementation

If user-controlled data must be added to an expression interpreter, one or more of the following should be performed:

- Validate that the user input will not evaluate as an expression
- Encode the user input in a way that ensures it is not evaluated as an expression

### System Configuration, Operation

The framework or tooling might allow the developer to disable or deactivate the processing of EL expressions, such as setting the isELIgnored attribute for a JSP page to "true".

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

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2021-44228 | Product does not neutralize ${xyz} style expressions, allowing remote code execution. (log4shell vulnerability in log4j) |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2021-26084 | Atlassian Confluence Server and Data Center Object-Graph Navigation Language (OGNL) Injection Vulnerability | critical | 10.0 | - | Yes | 2021-08-30 |
| CVE-2022-26134 | Atlassian Confluence Server and Data Center Remote Code Execution Vulnerability | critical | 9.3 | - | Yes | 2022-06-03 |
| CVE-2020-17530 | Remote code execution in Apache Struts | critical | 9.3 | - | Yes | 2020-12-11 |
| CVE-2010-1871 | Red Hat Linux JBoss Seam 2 Remote Code Execution Vulnerability | critical | 9.3 | - | Yes | 2010-08-04 |
| CVE-2021-45046 | Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack | critical | 9.0 | - | Yes | 2021-12-14 |
| CVE-2020-10199 | Nexus Repository Manager 3 - Remote Code Execution | high | 8.7 | - | Yes | 2020-04-01 |
| CVE-2025-41243 | Spring Expression Language property modification using Spring Cloud Gateway Server WebFlux | critical | 10.0 | - | No | 2025-09-16 |
| CVE-2025-3322 | Improper Neutralization of Special Elements in OnlineSuite | critical | 10.0 | - | No | 2025-06-06 |
| CVE-2026-104711 | Apache Struts: OGNL injection in the legacy RESTful action mapper | critical | 9.8 | - | No | 2026-10-05 |
| CVE-2026-52439 | An issue in xiandafu beetl 3.20.2 allows a remote attacker to execute arbitrary code via the type... | critical | 9.8 | - | No | 2026-07-23 |
| CVE-2026-11561 | SSTI in Soagen Informatics' Apinizer | critical | 9.8 | - | No | 2026-06-11 |
| CVE-2024-5828 | EL Injection Vulnerability in Hitachi Tuning Manager | critical | 9.8 | - | No | 2024-08-06 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-74](https://radicalnotion.ai/cwe/cwe-74) | Improper Neutralization of Special Elements in Output Used by a Downstream Component |
| Parent | [CWE-77](https://radicalnotion.ai/cwe/cwe-77) | Improper Neutralization of Special Elements used in a Command |
| Peer | [CWE-1336](https://radicalnotion.ai/cwe/cwe-1336) | Improper Neutralization of Special Elements Used in a Template Engine |

## Frequently asked questions

### What is CWE-917?

The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.

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

187 recorded CVEs are attributed to CWE-917, including CVE-2021-26084, CVE-2022-26134 and CVE-2020-17530. 6 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### How do you prevent CWE-917?

Avoid adding user-controlled data into an expression interpreter when possible.

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

Exploiting CWE-917 can lead to: Read Application Data, Execute Unauthorized Code or Commands.

### Is CWE-917 actively exploited?

Yes. 6 CWE-917 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 187 recorded CVEs.

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

---

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