Skip to content

AAK-MCP-SEARXNG-CVE-2026-58483-001: mcp-searxng below 1.7.1 (a missing Content-Length bypasses the read cap)

Severity
HIGH
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
McpSearxngUnboundedRead

What it detects

mcp-searxng before 1.7.1 passes a caller-supplied URL from web_url_read to readUrlContent(), where checkContentLength() treats an absent Content-Length header as an inconclusive preflight rather than a reason to stop. Both the normal and the error path then consume the entire body with response.text(), so a server that simply omits the header defeats URL_READ_MAX_CONTENT_LENGTH_BYTES and forces unbounded memory use. The resulting string is handed to NodeHtmlMarkdown.translate(), adding CPU to the memory, and the caller needs no credentials (CVE-2026-58483, CVSS 7.5, CWE-400). Fixed in 1.7.1.

How to fix

Upgrade mcp-searxng to >= 1.7.1 and pin it. Where you enforce a response size limit yourself, treat a missing Content-Length as unknown rather than acceptable and cap the read as the body streams — a preflight header is a hint from the peer you are defending against, so it cannot be the only place the limit is applied.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-SEARXNG-CVE-2026-58483-001

Limitations

Reads mcp-searxng in package.json, .mcp.json, mcp.json, claude_desktop_config.json and the package-lock.json, pnpm-lock.yaml and yarn.lock lockfiles at the project root only, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (packages/app/package.json), in .cursor/mcp.json or .vscode/mcp.json, or in a lockfile format the reader does not parse (a Yarn 2+ yarn.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-SEARXNG-CVE-2026-58483-001.md: the page then shows that text, with the registry reference appended under it.