Date: 
2025-January-22
Vulnerability: 
Access bypass, Information Disclosure
Affected versions: 
<1.0.3
CVE IDs: 
CVE-2025-31678
Description: 

The AI logging sub-module enables you to log AI requests and responses for debugging and auditing purposes.

The module doesn't sufficiently check for access to view the preview listing of the logs. Full log details are correctly protected, and API keys are never logged.

This vulnerability is mitigated by the fact that it only affects sites using the AI Logging sub-module with 'Log requests' enabled in the AI Logging configuration page.

Solution: 

Install the latest version:

  • If you use AI 1.x, upgrade to AI 1.0.3.

An update hook will update the view to use the view ai log permission. If you use version controlled configuration, remember to capture this.

(or) Disable the AI Logging module.

(or) Manually update the ai_logs view's access check to use the view ai log permission.

Reported By: 
  • Mingsong
  • Provisional Member of the Drupal Security Team

Coordinated By: