Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-45389— Pagefind DOM clobbering could escalate to Cross-site Scripting (XSS)

Quick assessment

Affected
CloudCannon pagefind
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Pagefind是CloudCannon开源的一个完全静态的搜索库。 Pagefind 1.1.1版本及之前版本存在安全漏洞,该漏洞源于对document.currentScript.src值的查找可以被页面上的其他HTML元素覆盖,这可能导致外部域被用来加载依赖项,从而可能使攻击者提升其可执行的操作权限。

CVSS 6.4 · Medium EPSS 0.42% · P34

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-45389

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

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.

Vulnerability Title
Pagefind DOM clobbering could escalate to Cross-site Scripting (XSS)
Source: CVE Program / CVE List V5
Vulnerability Description
Pagefind, a fully static search library, initializes its dynamic JavaScript and WebAssembly files relative to the location of the first script the user loads. This information is gathered by looking up the value of `document.currentScript.src`. Prior to Pagefind version 1.1.1, it is possible to "clobber" this lookup with otherwise benign HTML on the page. This will cause `document.currentScript.src` to resolve as an external domain, which will then be used by Pagefind to load dependencies. This exploit would only work in the case that an attacker could inject HTML to a live, hosted, website. In these cases, this would act as a way to escalate the privilege available to an attacker. This assumes they have the ability to add some elements to the page (for example, `img` tags with a `name` attribute), but not others, as adding a `script` to the page would itself be the cross-site scripting vector. Pagefind has tightened this resolution in version 1.1.1 by ensuring the source is loaded from a valid script element. There are no reports of this being exploited in the wild via Pagefind.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Pagefind 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Pagefind是CloudCannon开源的一个完全静态的搜索库。 Pagefind 1.1.1版本及之前版本存在安全漏洞,该漏洞源于对document.currentScript.src值的查找可以被页面上的其他HTML元素覆盖,这可能导致外部域被用来加载依赖项,从而可能使攻击者提升其可执行的操作权限。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
CloudCannon pagefind < 1.1.1 -

II. Public POCs for CVE-2024-45389

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-45389

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-45389 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2024-45389

No comments yet


Leave a comment