CWE-107

Struts: Unused Validation Form
AI Translation Available

An unused validation form indicates that validation logic is not up-to-date.

Status
draft
Abstraction
variant
Java

It is easy for developers to forget to update validation logic when they remove or rename action form mappings. One indication that validation logic is not being properly maintained is the presence of an unused validation form.

Common Consequences

other
Impacts
quality degradation

Potential Mitigations

Phases:
implementation
Descriptions:
• Remove the unused Validation Form from the validation.xml file.