Information Exposure Through an Error Message in Play Framework - CVE-2022-31023
Published: November 1, 2025 / Updated: November 23, 2026
Vulnerability details
The vulnerability allows a remote attacker to obtain potentially sensitive application information from verbose error responses, including exception stack traces.
The vulnerability exists due to verbose error reporting by Play Framework's static Scala DefaultHttpErrorHandler when it handles production errors without checking the application mode. A remote attacker can trigger an application error to obtain diagnostic details if production uses this handler through the CORSFilter or CORSActionBuilder defaults or through dependency injection.