CVE-2024-45389
Last modified
CVE-2024-45389 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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`. EPSS estimates a 0.40% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Pagefind | Pagefind | < 1.1.1 | — |
| Pagefind | Pagefind | 1.1.1 | Alpha0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-45389?
How severe is CVE-2024-45389?
How do I fix CVE-2024-45389?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-45383A mishandling of IRP requests vulnerability exists in the HD…5
- CVE-2024-45384Padding Oracle vulnerability in Apache Druid extension, drui…5.3
- CVE-2024-45385A vulnerability has been identified in Industrial Edge Manag…6.1
- CVE-2024-45386A vulnerability has been identified in SIMATIC PCS neo V4.0 …8.8
- CVE-2024-45387An SQL injection vulnerability in Traffic Ops in Apache Traf…8.8
- CVE-2024-45388Hoverfly is a lightweight service virtualization/ API simula…7.5
- CVE-2024-4539An issue has been discovered in GitLab CE/EE affecting all v…6.5
- CVE-2024-45390@blakeembrey/template is a string template library. Prior to…9.8
- CVE-2024-45391Tina is an open-source content management system (CMS). Site…7.5
- CVE-2024-45392SuiteCRM is an open-source customer relationship management …4.3
- CVE-2024-45393Computer Vision Annotation Tool (CVAT) is an interactive vid…6.4
- CVE-2024-45394Authenticator is a browser extension that generates two-step…7.8
Are you affected by CVE-2024-45389?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
