---
title: "CWE-110: Struts: Validator Without Form Field"
url: https://radicalnotion.ai/cwe/cwe-110
type: cwe
description: "Validation fields that do not appear in forms they are associated with indicate that the validation logic is out of date."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-110: Struts: Validator Without Form Field

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

## Description

Validation fields that do not appear in forms they are associated with indicate that the validation logic is out of date.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | It is easy for developers to forget to update validation logic when they make changes to an ActionForm class. One indication that validation logic is not being properly maintained is inconsistencies between the action form and the validation form. |
| Operation | - |

## Applicable platforms

**Languages:** Java (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Other | It is critically important that validation logic be maintained and kept in sync with the rest of the application. Unchecked input is the root cause of some of today's worst and most common software security problems. Cross-site scripting, SQL injection, and process control vulnerabilities all stem from incomplete or absent input validation. |

## Detection methods

### Automated Static Analysis

To find the issue in the implementation, manual checks or automated static analysis could be applied to the XML configuration files.

Effectiveness: Moderate

### Manual Static Analysis

To find the issue in the implementation, manual checks or automated static analysis could be applied to the XML configuration files.

Effectiveness: Moderate

## Demonstrative examples

### Example 1

This example shows an inconsistency between an action form with two fields and a validation form with a third field.

Bad code:

```java
public class DateRangeForm extends ValidatorForm {
    String startDate, endDate;

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
}
```

Bad code:

```xml
<form name="DateRangeForm">
    <field property="startDate" depends="date">
        <arg0 key="start.date"/>
    </field>
    <field property="endDate" depends="date">
        <arg0 key="end.date"/>
    </field>
    <field property="scale" depends="integer">
        <arg0 key="range.scale"/>
    </field>
</form>
```

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-20](https://radicalnotion.ai/cwe/cwe-20) | Improper Input Validation |
| Parent | [CWE-1164](https://radicalnotion.ai/cwe/cwe-1164) | Irrelevant Code |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| 7 Pernicious Kingdoms | Struts: Validator Without Form Field | - | - |
| Software Fault Patterns | Tainted input to command | SFP24 | - |

## Frequently asked questions

### What is CWE-110?

Validation fields that do not appear in forms they are associated with indicate that the validation logic is out of date.

### How is CWE-110 detected?

Automated Static Analysis: To find the issue in the implementation, manual checks or automated static analysis could be applied to the XML configuration files.

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

Exploiting CWE-110 can lead to: Other.

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

---

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