CVE-2026-7191 Arbitrary Code Execution via Sandbox Bypass in the open source solution QnABot on AWS
An authenticated administrator can execute arbitrary code and access backend resources by bypassing the expression sandbox in QnABot on AWS.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-7191?
CVE-2026-7191 is a high-severity code injection vulnerability in QnABot on AWS, published on 27 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Improper use of the static-eval npm package in the open source solution qnabot-on-aws versions 7.2.4 and earlier may allow an authenticated administrator to execute arbitrary code within the fulfillment Lambda execution context by injecting a crafted conditional chaining expression via the Content Designer interface, which bypasses the intended expression sandbox through JavaScript prototype manipulation. This may grant direct access to backend resources (Lambda environment variables, OpenSearch indices, S3 objects, DynamoDB tables) that are not exposed through normal administrative interfaces.
We recommend you upgrade to version 7.3.0 or above.
Weakness: CWE-94
Which versions are affected by CVE-2026-7191?
How do I fix CVE-2026-7191?
No fix has been published for CVE-2026-7191 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-7191 being exploited?
There is no known exploitation of CVE-2026-7191 in the wild and no public exploit code.