The vulnerability lies in the exception handling logic for database integrity errors within the Airflow API. The analysis of the patch commit 427e52d69ad64a3c62be2f265f125ba5520f22d6 clearly shows that the UniqueConstraintErrorHandler.exception_handler function in airflow-core/src/airflow/api_fastapi/common/exceptions.py was modified to prevent the leakage of SQL statements and database error details. Before the fix, the function directly included exc.statement and exc.orig in the HTTP response, bypassing the api/expose_stack_traces setting. The patch introduces conditional logic to check this setting and explicitly hide these details by replacing them with the string "hidden" when stack traces are not supposed to be exposed. Therefore, any API endpoint that could trigger a database unique constraint violation would have been vulnerable to this information disclosure.