GitHub 安全公告库 (GHSA)·· 2 天前AI 评分42
ApostropheCMS 的 sanitize-html 因隐式闭合提前结束 nonTextTags 丢弃区,导致内容被渲染
ApostropheCMS sanitize-html: nonTextTags discard region ends early on an implied close, letting content render
AI 导读
ApostropheCMS 使用的 sanitize-html 在处理 nonTextTags 时忽略 htmlparser2 传入的 isImplied 标志,从内部闭合仍未关闭的祖先元素会提前结束丢弃区,使本应被丢弃的内容被渲染。问题位于 index.js 的 onclosetag 处理逻辑(:638、:644),修复建议是隐式闭合不得结束丢弃区。
来源:GitHub 安全公告库 (GHSA) · github.com