JAVA-081 / Advanced
Evaluating user input with ScriptEngine or Groovy
Why is this a problem?
Input strings execute as scripts.
How to fix it
java
// Calculate with a dedicated parser and allowlisted operators; do not expose the script engine