Common Weakness Enumeration
CWE Definition / CWE-597
CWE-597: Use of Wrong Operator in String Comparison
The product uses the wrong operator when comparing a string, such as using == when the .equals() method should be used instead.
Published:15 Dec 2006
Organization:MITRE
Modified:11 Dec 2025
