提供了比 更健壮的替代方案。在 0.5.1 版本之前, 中的 函数会在原生解码抛出异常时回退到自定义的 函数;该回退逻辑会先收集所有不同的百分号编码序列,然后对每个序列执行一次全字符串正则替换。因此,包含大量不同编码序列的畸形输入会导致替换次数与扫描的输入长度同步增长,从而引发二次方级别的 CPU 消耗并阻塞 Node.js 事件循环。请求体中的输入可以达到演示中所示的大小,而普通 URL 头部的长度限制则降低了实际延迟的影响。该问题已在 0.5.1 版本中修复。
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| SamVerschueren | decode-uri-component | < 0.5.1 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC