Commit eb7c0e5
Add security warning for RQ pickle serializer (CWE-502) (#843)
* Use Job.id property instead of removed get_id() method
rq v2.7 refactored Job.id from `id = property(get_id, set_id)` to a
`@property` decorator, removing get_id() as a callable method.
Job.id has been available since rq v0.5.0 so this is backwards compatible.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Support FastMCP 3.x while maintaining 2.x backwards compatibility
FastMCP 3.0 replaced private _call_tool_mcp()/_list_tools_mcp() with
public call_tool()/list_tools() methods, and changed get_tool() to
return None instead of raising when a tool is not found.
- Update instrumentation to handle get_tool() returning None
- Update tests with compat helpers that use the correct API based on
the installed fastmcp version
- Remove the fastmcp<3 version pin from tox.ini (no longer needed)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add security warning when RQ uses default pickle serializer
Addresses CVE concern (CWE-502) where RQ's default pickle serializer
can enable RCE via Redis. Scout's own code does not use pickle, but
this warning helps users identify the risk in their RQ configuration.
Closes #842
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent fc9082c commit eb7c0e5
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
60 | 75 | | |
61 | 76 | | |
62 | 77 | | |
| |||
0 commit comments