.. / pagefind
Star Fork

Pagefind is a fully static search library that aims to perform well on large sites, while using as little of your users’ bandwidth as possible, and without hosting any infrastructure.

pagefind
CloudCannon
...

≤v1.1.0 | CVE-2024-45389

<img> @src @name 🛡️ strict-dynamic ⏱️ before-load
More information

Root Cause

Source: https://github.com/Pagefind/pagefind/blob/8dc9eca357cee070ccc5592e268d86bc9259a883/pagefind_ui/default/ui-core.js#L5

let scriptBundlePath;
try {
  scriptBundlePath = new URL(document.currentScript.src).pathname.match(
    /^(.*\/)(?:pagefind-)?ui.js.*$/
  )[1];
} catch (e) {
  scriptBundlePath = "/pagefind/";
}

Source: https://github.com/Pagefind/pagefind/blob/8dc9eca357cee070ccc5592e268d86bc9259a883/pagefind_ui/default/svelte/ui.svelte#L95

imported_pagefind = await import(`${base_path}pagefind.js`);

Related links:

Found by jackfromeast, ishmeals.


Source | History