> CVE-2024-45389 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2024-09-03 20:15
MODIFIED
2025-10-14 14:44
CVSS_SCORE V3
6.4
EPSS (Prob. Exploit)
0.42%
Top 63.3%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-11 OSV 🔗 2026-11-08

> 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.

> AFFECTED_PRODUCTS

Pagefind - Pagefind
< 1.1.1
Pagefind - Pagefind
Version: 1.1.1

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
High
Interruption totale du service possible

> GITHUB SECURITY ADVISORY

GHSA-gprj-6m2f-j9hx MODERATE

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

AFFECTED PACKAGES:
RUST / pagefind
< 1.1.1
Fixed in: 1.1.1
NPM / @pagefind/modular-ui
< 1.1.1
Fixed in: 1.1.1
NPM / @pagefind/default-ui
< 1.1.1
Fixed in: 1.1.1
NPM / pagefind
< 1.1.1
Fixed in: 1.1.1

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

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

AFFECTED PACKAGES:
Unknown / Unknown
124 versions affected
ALIASES:
GHSA-gprj-6m2f-j9hx

> HISTORIQUE DES MODIFICATIONS

Première apparition
03/09/2024 20:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:54
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME