← All advisories
CVE-2026-120012highSecret exposure2026-11-10

CVE-2026-120012: SAP Cloud SDK for AI (Node.js) can leak auth credentials into error messages, fixed in @sap-ai-sdk/ai-api 2.18.0

SAP's Node.js SDK for AI (@sap-ai-sdk/ai-api 2.17.0 and earlier) could include authentication credentials in error messages under certain failure conditions, so anyone who can read your logs or forwarded error output could reuse the token against the SAP service. Upgrade to 2.18.0, which stops logging the destination.

01.

What it is

Under specific failure conditions, internal operations in the SDK put sensitive authentication credentials into the error messages they generate (CWE-209).

An attacker with low privileges and access to application logs or forwarded error output could pick up the credentials and reuse them while the token is still valid. SAP rates exploitation as complex but the impact as high.

SAP's patch note: the destination was removed from the logged values. No workaround is available.

02.

How to check

  1. Run npm ls @sap-ai-sdk/ai-api and see whether you're on 2.17.0 or earlier.
  2. Check where your app's error output goes (log aggregators, error trackers, chat alerts) and who can read it.
03.

How to fix

  1. Upgrade @sap-ai-sdk/ai-api to 2.18.0 or later.
  2. If error logs from affected versions were shared widely, rotate the SAP AI Core service credentials they may contain.
npm ls @sap-ai-sdk/ai-api
npm install @sap-ai-sdk/ai-api@^2.18.0
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.