← Java / Spring · Contents

JAVA-080 / Beginner

Exposing JDBC/MyBatis errors (SQL state)

A05:2021 · CWE-209 Error Message Information Exposure

Why is this a problem?

Table and column structures are revealed.

How to fix it

yaml
logging.level.org.apache.ibatis: WARN     # Production: exclude error details from responses

Further reading