OpenClaw v2026.4.9:安全加固、会话路由修复与记忆升级

April 9, 2026
OpenClaw v2026.4.9 修复5项安全漏洞(含SSRF绕过与环境变量注入),新增记忆REM回填,修复Telegram会话路由,B2B销售机器人必看升级指南。
OpenClaw v2026.4.9:安全加固、会话路由修复与记忆升级

OpenClaw v2026.4.9:安全加固、会话路由修复与记忆升级

OpenClaw v2026.4.9 于2026年4月9日发布,包含5项安全修复、一项影响工作区.env文件处理的破坏性变更、记忆/梦境功能改进、长期等待的Telegram会话路由修复,以及影响OpenAI Token成本的模型配置调整。无论您是在PulseAgent上运行B2B SDR智能体,还是自行部署,此版本都值得谨慎升级。

一键升级:

curl -fsSL https://raw.githubusercontent.com/iPythoning/b2b-sdr-agent-template/main/install.sh | bash

v2026.4.9 主要变化

安全修复 — 5项关键漏洞

1. 浏览器导航绕过SSRF防护(CVE级别) 恶意网页或对抗性提示词可通过模拟点击触发主帧导航,从而绕过OpenClaw的封锁目标检疫机制。现在每次交互触发的导航(点击、eval、钩子触发点击、批量操作)之后都会重新执行安全检查。使用Web抓取或浏览器工具进行线索调研的B2B智能体之前存在理论上的攻击面,现已关闭。

2. 工作区.env运行时控制变量注入被阻断(破坏性变更) 工作区.env文件中的运行时控制变量、浏览器控制覆盖标志和跳过服务端变量现在在启动时被拒绝,防止被攻破的工作区静默篡改智能体运行时。

3. 远程节点执行事件标记为不可信 来自远程节点的exec.started、exec.finished和exec.denied摘要现在被标记为不可信系统事件,命令/输出/原因文本经过清理,关闭了通过构造exec摘要将不可信文本提升为可信系统上下文的注入路径。

4. 插件引导认证选项碰撞防护 不受信任的工作区插件不再能够在非交互式引导期间注册与内置提供商认证选项ID冲突的ID,关闭了流氓插件劫持合法提供商凭据提示的攻击路径。

5. basic-ftp CRLF注入修复 将basic-ftp强制升级至5.2.1版本(修复上游CRLF命令注入漏洞),同时升级生产依赖中的Hono和@hono/node-server。


破坏性变更:工作区.env运行时变量被阻断

这是最可能导致现有部署静默失效的变更:

旧行为 新行为(v2026.4.9+)
工作区.env中OPENCLAW_GATEWAY_PORT=18800 → 网关绑定18800端口 被忽略 — 网关使用openclaw.json中的值
OPENCLAW_SKIP_APPROVAL=1 → 跳过审批门 被忽略 — 审批门强制执行
OPENCLAW_BROWSER_HEADLESS=0 → 浏览器有头模式运行 被忽略 — 使用openclaw.json浏览器配置

迁移方案: 将运行时控制变量移至真实系统环境(在openclaw gateway start前export),或写入openclaw.json对应配置路径。升级后运行openclaw doctor——它会显示所有被忽略的变量。普通API密钥和频道Token不受影响。


记忆与梦境 — 长期运行SDR智能体的REM回填

新的rem-harness --path参数支持历史日记回放到Dreams记忆栈,无需启动第二个记忆栈。结合实时短期晋升机制,运行数月的SDR智能体现在可将旧交互记录回填到已落地的长期记忆中。

B2B SDR实际影响:

  • 积累90天以上线索互动记录的智能体可将旧记录追溯纳入Dreams栈,无需重启或丢失当前栈
  • 新的结构化日记视图提供时间线导航、回填/重置控制和可追溯的梦境摘要——可审计智能体对特定线索的记忆内容
  • 安全的clear-grounded操作支持分阶段回填,不会破坏实时记忆

PulseAgent用户的记忆功能由平台自动管理,此改进在下一个智能体周期生效。


Telegram会话路由修复

之前存在一个长期Bug:sessions_send后续消息可能抢占已建立的Telegram外部路由的投递,导致多会话SDR流程中消息静默丢失。v2026.4.9已修复此问题,无需更改配置。

如果您在多个并发会话(按产品线或按市场)中运行B2B SDR智能体,且Telegram回复偶尔发到错误频道,升级即可解决。

同步修复:

  • /reset和/new现在正确清除自动回退固定的模型覆盖(保留用户明确选择的模型)
  • 快速切换会话时的历史加载竞态条件已修复

Slack修复 — 媒体附件、块回复、流式输出

v2026.4.9中三项Slack专项修复:

  1. files.slack.com重定向保留Bearer认证 — url_private_download图片附件现在可正常加载
  2. ACP块回复视为已投递 — Slack渲染块回复后不再重复发送纯文本
  3. 流式输出最终答案抑制修复 — 失败的流预览文本不再阻止最终答案显示

模型提供商更新

OpenAI: 在未显式设置reasoning_effort时,Responses、WebSocket和completions传输层现在默认使用high推理力度。如果您使用o3等推理模型,请升级后关注Token用量。可显式设置reasoningEffort: "medium"或"low"来控制成本。

Ollama: 使用api: "ollama"的模型在/think激活时现在输出思维过程,便于调试本地模型上的SDR提示词质量。

OpenRouter: 含斜杠的模型ID(如anthropic/claude-3-5-sonnet)现在正确保留openrouter/前缀。

智能体超时继承: LLM空闲超时现在继承agents.defaults.timeoutSeconds。定时任务的空闲监视器已禁用,不再误杀长处理时间的SDR定时任务。

agents:
  defaults:
    timeoutSeconds: 300
    llm:
      idleTimeoutSeconds: 120

v2026.4.8 vs v2026.4.9 对比

维度 v2026.4.8 v2026.4.9
安全修复数量 5项(重定向泄露、白名单绕过、base64限制、不可信事件、cmd.exe门控) 5项(SSRF浏览器绕过、env注入、exec注入、插件碰撞、CRLF)
破坏性变更 无 1项(工作区.env运行时变量被忽略)
Telegram会话路由 Bug:多会话回复路由错误 已修复:外部路由跨announce流量保持稳定
OpenAI推理力度 默认不发送 默认high——注意Token成本
记忆/梦境 现有栈 REM回填 + 结构化日记视图
定时任务空闲超时 可能误杀长时间定时任务 定时任务空闲监视器已禁用

对PulseAgent用户的影响

PulseAgent底层基于OpenClaw运行,v2026.4.9的影响如下:

  • 安全性:SSRF和exec注入修复已在PulseAgent托管环境中自动应用
  • Telegram可靠性:会话路由修复消除了多会话Telegram设置中的静默消息丢失——对于俄罗斯/独联体、伊朗、东欧市场的用户至关重要
  • 记忆:长期运行的SDR智能体在下一个周期自动受益于REM回填
  • OpenAI成本:如果您使用OpenAI推理模型且未显式设置reasoningEffort,建议切换到Claude——其在SDR任务上的性价比更优

厌倦了手动升级维护?使用托管方案。 PulseAgent自动处理每次OpenClaw升级、安全补丁和配置迁移。 立即免费开始 → pulseagent.io/app


60秒完成升级

# 先备份(必须)
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak

# 升级
npm install -g openclaw@latest
openclaw gateway install --force
openclaw doctor
openclaw gateway restart

# 验证
curl -s http://localhost:18789/health
# {"ok":true,"status":"live"}

或使用模板一键脚本(自动处理版本固定、配置迁移和doctor检查):

curl -fsSL https://raw.githubusercontent.com/iPythoning/b2b-sdr-agent-template/main/install.sh | bash

常见问题

Q:升级后我的.env会失效吗? A:仅当其中包含运行时控制变量(OPENCLAW_GATEWAY_PORT、OPENCLAW_SKIP_*、OPENCLAW_BROWSER_*)时才会受影响。普通API密钥和频道Token不受影响。升级后立即运行openclaw doctor查看被忽略的变量。

Q:升级后OpenAI Token费用突然增加,为什么? A:v2026.4.9将OpenAI推理力度默认设为high。在模型配置中显式设置reasoningEffort: "medium"降低成本,或切换到Claude——它在SDR任务上具有更好的工具调用性能和更低成本。

Q:Telegram回复有时发到错误频道,已修复? A:是的。sessions_send会话路由Bug在v2026.4.9中已修复,升级即可,无需更改配置。

Q:可以直接从v2026.4.8升级到v2026.4.9,跳过中间版本吗? A:可以。v2026.4.9是v2026.4.8修复的超集,直接升级即可。请同时查阅两个版本的更新日志了解配置变更。

Q:PulseAgent是什么? A:PulseAgent是基于OpenClaw的托管B2B SDR智能体平台——基础设施、升级和集成全由平台处理,您专注于销售即可。查看定价。


立即开始赢得更多B2B订单

无论您向东南亚出口机械、向中东出口纺织品,还是向全球销售电子产品,基于OpenClaw的AI驱动SDR智能体都能全天候、用客户语言、通过WhatsApp和Telegram处理销售管道的前10次触达。

免费试用PulseAgent,无需信用卡 →

探索解决方案:

Related Posts

Public
Oct 23, 2026

Why AI SDR Cold Outreach Loses Approval Context (And How to Keep It)

Cold outreach stalls when the AI SDR cannot see who approved the message, what the buyer already said, or which reply is safe. Keep approval, thread context, and human gates in one workflow before you scale volume.

Public
Oct 23, 2026

How to Keep WhatsApp + Human Review in an AI SDR Workflow

Pause AI on one WhatsApp thread, let a human reply from the same number, write the decision back, then resume. Here is a review checklist, a handoff flow, and the rules that keep buyers from repeating themselves.

Public
Oct 16, 2026

ClashBox HarmonyOS Tutorial: How to Install Clash on HarmonyOS NEXT via Overseas AppGallery or Signed Sideloading (with Screenshots)

Learn how to install ClashBox on HarmonyOS NEXT via overseas AppGallery or signed HAP sideloading, then import subscriptions, enable VPN, and keep it running.

Public
Oct 16, 2026

v2rayN for Windows Tutorial: Download, Installation, Proxy Subscription Import, and Routing Setup (with Screenshots)

Step-by-step v2rayN guide for Windows, covering secure downloads, subscription imports, node testing, system proxy and routing, updates, and fixes.

Public
Oct 16, 2026

PassWall 2 OpenWrt Router Tutorial: Install the Plugin, Import a Proxy Subscription, and Connect Every Device | Airport Chinese (Screenshots Included)

Install PassWall 2 on OpenWrt, import a proxy-provider subscription, test nodes, configure split routing, and troubleshoot connectivity across your home network.

Public
Oct 16, 2026

Clash Verge Rev Guide for Windows/macOS/Linux: Download, Installation, Subscription Import, and Proxy Chaining

A complete Clash Verge Rev guide for Windows, macOS, and Linux, covering installation, subscription import, proxy modes, node selection, TUN, and proxy chaining.

Public
Oct 16, 2026

OpenClash on an OpenWrt Router: Install OpenClash, Import a Proxy Subscription, and Connect Every Device at Home | 机场中文网 (with Screenshots)

Install OpenClash on an OpenWrt router, add a Clash subscription, choose modes and nodes, verify whole-home proxying, and troubleshoot common setup issues.

Public
Oct 16, 2026

ClashMi Windows Tutorial: Using the Portable Version and Importing a Subscription (With Screenshots)

A step-by-step guide to running portable ClashMi on Windows, handling SmartScreen, importing a proxy subscription, connecting, updating profiles, and switching nodes.

Public
Oct 16, 2026

FlClash for Windows Tutorial: Download and Install the Desktop App, Import a Proxy Subscription, and Enable the Proxy | Chinese Proxy Service Guide (Screenshots Included)

A step-by-step guide to installing FlClash on Windows, importing a proxy subscription, choosing a node, enabling proxying, and fixing connection issues.

Public
Oct 16, 2026

Clash Party for Windows Tutorial: How to Use Clash Party (With Screenshots)

Step-by-step Windows guide to installing Clash Party, importing a Clash subscription, choosing nodes, enabling the system proxy, and setting updates and startup.