langroid is vulnerable to SQL Injection
81
High Risk
SQLChatAgent enforces its SELECT-only statement allowlist by inspecting only the top-level parsed node of a query. Data-modifying CTEs such as WITH x AS (DELETE ...) SELECT ... and the SELECT ... INTO form parse with a top-level Select node, so they are accepted as read-only while the database still executes the embedded write. Under the default read-only policy, input that influences the generated SQL can insert, update, delete, or create data using an ordinary write-capable role. The fix walks the full parse tree for nested write nodes and rejects any statement whose parse tree contains a data-modifying operation outside the allowlist.
You are affected if you are using a version that falls within the vulnerable range and you run SQLChatAgent against a write-capable database role with untrusted or prompt-influenced input shaping the generated SQL.
langroid is vulnerable to SQL Injection in versions 0.0.1 - 0.65.13.
Upgrade the langroid library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant