Repository navigation
0.70.4
Security fix
The pandas expression validator no longer lets a method be passed as an argument
(GHSA-jccq-v27v-rhjv).
With the default full_eval=False, TableChatAgent and VectorStore.compute_from_docs
validate LLM-generated pandas expressions before evaluating them. The validator checked
which methods were called, but not what was passed to them, so an expression such as
df.groupby(by=df.eval) handed DataFrame.eval to pandas, which then ran it on
attacker-controlled strings and could execute code. Call arguments must now be data
(literals, columns, data attributes, results of allowlisted calls), never callables.
Note: attribute-style column access as an argument (df.filter(items=df.state)) is now
refused; use df['state'].
Thanks to @unbengable12 for the report.
Full changelog: 0.70.3...0.70.4