Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-45389

6.4 · MEDIUM
Published Sep 3, 2024 pagefind CWE-79 EPSS 0.42% (35th pctl)

Overview

CVE-2024-45389 is a medium-severity vulnerability affecting pagefind pagefind. It was published on September 3, 2024 and has a CVSS 3.1 base score of 6.4 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.4, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical 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 fro

Remediation

Check the references section for vendor advisories and patches from pagefind. Update pagefind to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
pagefind pagefind >= 0, < 1.1.1 Affected

Frequently Asked Questions

What is CVE-2024-45389?

CVE-2024-45389 is a medium-severity vulnerability affecting pagefind pagefind. It was published on September 3, 2024 and has a CVSS 3.1 base score of 6.4 (MEDIUM).

How severe is CVE-2024-45389?

This vulnerability has a CVSS 3.1 base score of 6.4, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-45389?

Check the references section for vendor advisories and patches from pagefind. Update pagefind to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-45389?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-45389 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.