AI觉醒星球
Awakening is here
Knowledge File / 全球热点解读
2026-04-27 4 浏览 公开

版本更新:langchain-ai/langchain 1.1.2,提升开发者接入体验

Langchain 发布 1.1.2 版本,主要修复 text-splitters 中的 SSRF 安全传输和空字典数据丢失问题,并更新多项依赖,提升开发者体验。

SOURCE / 全球热点解读 MIN / 4 ACCESS / 公开 POST / 2026-04-27 11:06:10

原贴

查看原文
作者:github-actions[bot] 来源站点:github.com 原贴时间:

原文

Changes since langchain-text-splitters==1.1.1 release(text-splitters): 1.1.2 ( #36822 ) fix(text-splitters): deprecate and use SSRF-safe transport in split_text_from_url ( #36821 ) chore: bump langsmith from 0.6.3 to 0.7.31 in /libs/text-splitters ( #36797 ) chore(deps): bump pytest to 9.0.3 ( #36801 ) chore: bump pytest from 9.0.2 to 9.0.3 in /libs/text-splitters ( #36714 ) chore: add comment explaining pygments>=2.20.0 ( #36570 ) release(core): 1.2.26 ( #36511 ) chore: pygments>=2.20.0 across all packages ( CVE-2026-4539 ) ( #36385 ) fix(text-splitters): prevent silent data loss for empty dict values in RecursiveJsonSplitter ( #35079 ) feat(text-splitters): support spacy tests with Python 3.14 ( #36198 ) fix(infra): correct lint_diff relative paths in package makefiles ( #36333 ) chore: bump requests from 2.32.5 to 2.33.0 in /libs/text-splitters ( #36238 ) chore: bump nltk from 3.9.3 to 3.9.4 in /libs/text-splitters ( #36237 ) chore(partners): bump langchain-core min to 1.2.21 ( #36183 ) chore(text-splitters): bump nltk in lock file ( #36112 ) ci: suppress pytest streaming output in CI ( #36092 ) chore(text-splitters): speed up ci ( #36050 ) ci: avoid unnecessary dep installs in lint targets ( #36046 ) chore: bump orjson from 3.11.5 to 3.11.6 in /libs/text-splitters ( #35856 ) chore: bump locks, lint ( #35985 ) perf(.github): set a timeout on get min versions HTTP calls ( #35851 ) chore: bump tornado from 6.5.2 to 6.5.5 in /libs/text-splitters ( #35774 ) chore: bump the minor-and-patch group across 3 directories with 3 updates ( #35589 ) chore: bump the other-deps group across 3 directories with 2 updates ( #35512 ) chore: bump nltk from 3.9.2 to 3.9.3 in /libs/text-splitters ( #35449 ) chore: bump the other-deps group across 3 directories with 2 updates ( #35407 )

中文翻译

自 langchain-text-splitters==1.1.1 发布以来的更改:1.1.2 修复:在 split_text_from_url 中弃用并使用 SSRF 安全传输;杂务:将 /libs/text-splitters 中的 langsmith 从 0.6.3 提升到 0.7.31;杂务:将 pytest 提升到 9.0.3;杂务:添加注释解释 pygments>=2.20.0;发布 core 1.2.26;杂务:pygments>=2.20.0 跨所有包(CVE-2026-4539);修复:防止 RecursiveJsonSplitter 中空字典值的静默数据丢失; feat:支持 Python 3.14 的 spacy 测试;fix:更正包 makefile 中的 lint_diff 相对路径;杂务:将 requests 从 2.32.5 提升到 2.33.0;杂务:将 nltk 从 3.9.3 提升到 3.9.4;杂务:碰撞 langchain-core min 到 1.2.21;杂务:在锁定文件中凹凸 nltk;ci:抑制 CI 中的 pytest 流输出;杂务:加速 CI;ci:避免在 lint 目标中安装不必要的 dep;杂务:将 orjson 从 3.11.5 提升到 3.11.6;杂务:碰撞锁、lint;perf:在获取最小版本 HTTP 调用上设置超时;杂务:将 tornado 从 6.5.2 碰撞到 6.5.5;杂务:在 3 个目录中碰撞次要和补丁组,有 3 个更新;杂务:在 3 个目录中碰撞 other-deps 组,有 2 个更新;杂务:将 nltk 从 3.9.2 碰撞到 3.9.3;杂务:在 3 个目录中碰撞 other-deps 组,有 2 个更新。

核心信息

Langchain 发布 1.1.2 版本,主要修复 text-splitters 中的 SSRF 安全传输和空字典数据丢失问题,并更新多项依赖,提升开发者体验。

  • 修复 SSRF 漏洞,增强外部 URL 安全
  • RecursiveJsonSplitter 空字典数据丢失修复
  • 升级多项依赖,提升稳定性和性能
  • 建议立即升级至 1.1.2 及以上版本
  • 关注接口兼容性及 CVE 影响

详细解读

这是什么信号?Langchain 作为 AI 应用开发的核心框架,其版本更新频率和修复重点反映了开发者生态的成熟度。1.1.2 版本专注于 text-splitters 模块的稳定性和安全性,特别是修复了 SSRF 安全传输和 RecursiveJsonSplitter 中空字典导致的静默数据丢失。这表明 Langchain 团队正在从功能扩展转向质量优化,确保生产环境下的可靠性。

为什么重要?对于使用 Langchain 构建 RAG 或 Agent 应用的开发者,text-splitters 是文档切分的关键组件。SSRF 漏洞的修复直接影响到调用外部 URL 时的安全性,而数据丢失问题的修复保证了切分结果的完整性。此外,依赖包的升级(如 pytest、nltk、requests)意味着更好的兼容性和性能。整体来看,这次更新降低了生产事故风险,提升了开发者的接入体验。

对谁有价值?1. 使用 Langchain 构建 QA 系统、信息提取或自定义工作流的 AI 工程师;2. 依赖 text-splitters 进行大规模文档处理的团队;3. 关注 AI 框架安全性和稳定性的技术决策者。

可以怎么行动?1. 立即升级到 langchain-text-splitters>=1.1.2 以获取安全修复和性能优化;2. 检查现有代码中是否使用了 split_text_from_url,更换为新的 SSRF 安全传输方法;3. 对于使用 RecursiveJsonSplitter 的场景,增加对空字典值的预处理逻辑;4. 同步升级整体 langchain 版本至 1.2.26 以获得 core 模块的改进。

风险或限制1. 升级可能带来接口变更,需测试旧代码兼容性;2. 修复 CVE-2026-4539 的 pygments 更新可能影响代码高亮功能;3. 依赖版本提升可能与其他库冲突,需在 CI 环境中验证。

信息差价值

信息差价值:多数开发者仅关注 Langchain 新功能,而忽视了安全与稳定性修复。本次更新中的 SSRF 修复和空字典处理属于底层质量改进,能避免生产环境中的隐蔽 bug。掌握这些细节,可在团队中提前规避风险,展现技术深度。

业务启发:对于构建 AI 应用的团队,及时跟进框架的 patch 版本是保障服务可靠性的关键。建议建立自动化依赖更新机制,并结合 CI 进行回归测试。本次修复提示:文本分片模块常被忽视,但恰恰是数据管道中的脆弱环节。

可沉淀动作:1. 将 langchain 版本锁定为 1.1.2+/1.2.26+ 纳入项目依赖模板;2. 内部文档增加 text-splitters 安全使用指南,强调 URL 白名单和空值校验;3. 定期订阅 Langchain 发布公告,设置工单提醒,确保第一时间应用安全补丁。

参考来源

上一篇 趋势解读:Tracking the history of the now-deceased OpenAI Microsoft,提升开发者接入体验 下一篇 版本更新:huggingface/transformers v5.6.0,提升开发者接入体验