安全速报自动同步 · 保留上游原文

【高危】recce:跨站脚本风险(GHSA-rh62-j648-g5qc)

S
KHack 安全情报
2026/7/3 发布 · 2 阅读

安全情报快照 · 风险级别:高危 · CVE-2026-49360 · GHSA-rh62-j648-g5qc

先看结论

recce存在跨站脚本风险,<= 1.49.0 受影响,建议升级至 1.50.0。

影响范围

生态 组件 受影响版本 首个修复版本
pip recce <= 1.49.0 1.50.0

处置建议

优先将 recce 升级至 1.50.0 或更高版本;升级前请结合业务依赖完成兼容性验证。

上游技术详情(原文)

Impact

Recce OSS server deployments that expose the server to an untrusted network without authentication are vulnerable to unauthenticated SQL execution through the query run API.

When Recce is configured with a DuckDB-backed project, an attacker can use DuckDB filesystem primitives to read and write files accessible to the Recce server process. The impact depends on how Recce is deployed, but may include disclosure of local files, tampering with Recce/dbt artifacts, modification of browser-served static files leading to stored XSS, and modification of application files if those paths are writable. If Recce is run as root, file access occurs with root privileges inside that host or container.

Patches

This issue has been patched in Recce v1.50.0. Users should upgrade to Recce v1.50.0 or later.

The patch restricts unsafe file read/write behavior for DuckDB-backed query execution and hardens the affected query path. Other warehouse adapters have also been reviewed for similar exposure.

Credits

Thanks to Sitampan (@hxcbtc) for responsibly reporting this issue.

Workarounds

Users who cannot upgrade immediately should avoid exposing recce server to the public internet or any untrusted network.

Recommended mitigations include enabling authentication or placing Recce behind an authenticated reverse proxy/VPN, running Recce as a non-root user, using a read-only application filesystem where possible, and ensuring that sensitive files or credentials are not available to the Recce process.

来源与许可

本页自动同步 GitHub Advisory Database 的公开数据,并保留上游原文供核验;不宣称原创分析。数据许可:CC-BY-4.0。

评论

还没有评论,来说两句。