Read the docs
TI-2024-30438 Aliases CVE-2024-45389GHSA-gprj-6m2f-j9hx

Pagefind DOM clobbering could escalate to Cross-site Scripting (XSS)

Priority MEDIUM 62CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00421 36th percentileScored 2026-11-07
Fix Fixed pagefind (CloudCannon): 1.1.1pagefind (npm): 1.1.1+3 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
CloudCannonpagefindbefore 1.1.11.1.1Patch availableCNA
—pagefind (npm)before 1.1.11.1.1Patch availableGHSA-gprj-6m2f-j9hx
—@pagefind/default-ui (npm)before 1.1.11.1.1Patch availableGHSA-gprj-6m2f-j9hx
—@pagefind/modular-ui (npm)before 1.1.11.1.1Patch availableGHSA-gprj-6m2f-j9hx
—pagefind (crates.io)before 1.1.11.1.1Patch availableGHSA-gprj-6m2f-j9hx
  • pagefind VendorCloudCannon Affected before 1.1.1 Fixed in 1.1.1 Patch available CNA
  • pagefind (npm) Vendor— Affected before 1.1.1 Fixed in 1.1.1 Patch available GHSA-gprj-6m2f-j9hx
  • @pagefind/default-ui (npm) Vendor— Affected before 1.1.1 Fixed in 1.1.1 Patch available GHSA-gprj-6m2f-j9hx
  • @pagefind/modular-ui (npm) Vendor— Affected before 1.1.1 Fixed in 1.1.1 Patch available GHSA-gprj-6m2f-j9hx
  • pagefind (crates.io) Vendor— Affected before 1.1.1 Fixed in 1.1.1 Patch available GHSA-gprj-6m2f-j9hx

CPE configurations NVD · 6

CPEVersionsRoleVendor
cpe:2.3:a:pagefind:pagefind:*:*:*:*:*:*:*:*before 1.1.1VulnerablePagefind
cpe:2.3:a:pagefind:pagefind:1.1.1:alpha0:*:*:*:*:*:*1.1.1 alpha0VulnerablePagefind
cpe:2.3:a:pagefind:pagefind:1.1.1:alpha1:*:*:*:*:*:*1.1.1 alpha1VulnerablePagefind
cpe:2.3:a:pagefind:pagefind:1.1.1:alpha2:*:*:*:*:*:*1.1.1 alpha2VulnerablePagefind
cpe:2.3:a:pagefind:pagefind:1.1.1:alpha3:*:*:*:*:*:*1.1.1 alpha3VulnerablePagefind
cpe:2.3:a:pagefind:pagefind:1.1.1:alpha4:*:*:*:*:*:*1.1.1 alpha4VulnerablePagefind
  • cpe:2.3:a:pagefind:pagefind:*:*:*:*:*:*:*:* Versions before 1.1.1 Vulnerable ·Pagefind
  • cpe:2.3:a:pagefind:pagefind:1.1.1:alpha0:*:*:*:*:*:* Versions 1.1.1 alpha0 Vulnerable ·Pagefind
  • cpe:2.3:a:pagefind:pagefind:1.1.1:alpha1:*:*:*:*:*:* Versions 1.1.1 alpha1 Vulnerable ·Pagefind
  • cpe:2.3:a:pagefind:pagefind:1.1.1:alpha2:*:*:*:*:*:* Versions 1.1.1 alpha2 Vulnerable ·Pagefind
  • cpe:2.3:a:pagefind:pagefind:1.1.1:alpha3:*:*:*:*:*:* Versions 1.1.1 alpha3 Vulnerable ·Pagefind
  • cpe:2.3:a:pagefind:pagefind:1.1.1:alpha4:*:*:*:*:*:* Versions 1.1.1 alpha4 Vulnerable ·Pagefind

Remediation

  • Fix · CNA pagefind (CloudCannon) Fixed in 1.1.1
  • Fix · GHSA-gprj-6m2f-j9hx pagefind (npm) Fixed in 1.1.1 Advisory →
  • Fix · GHSA-gprj-6m2f-j9hx @pagefind/default-ui (npm) Fixed in 1.1.1 Advisory →
  • Fix · GHSA-gprj-6m2f-j9hx @pagefind/modular-ui (npm) Fixed in 1.1.1 Advisory →
  • Fix · GHSA-gprj-6m2f-j9hx pagefind (crates.io) Fixed in 1.1.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-45389
  2. 2026-10-03 Alias added: GHSA-gprj-6m2f-j9hx

References

Sources