CVE-2026-120338Prefecthq Prefab-ui code injection
Scor CVSS
10.0
Critic
CVSS 3.1 de la jfrog.com
Probabilitate de exploatare (EPSS)
0.95%
Șansă de 0.95% să fie exploatată în următoarele 30 de zile, peste 62.2% dintre toate CVE-urile.
CISA KEV
Nu este în KEV
CISA nu a raportat până acum exploatări confirmate.
Descrierea oficială
Prefab UI's Generative UI sandbox runs caller-supplied Python inside Pyodide, Python compiled to WebAssembly, in a Deno subprocess. The feature is documented as isolation for untrusted code, including LLM-written UI. From prefab-ui 0.14.0 through 0.20.2 the launcher starts Deno with unrestricted --allow-read, --allow-write, and --allow-net, and the runner leaves the Deno API on the JavaScript global object. Pyodide's js module proxies that global, so the Python can call Deno.readTextFileSync and Deno.writeTextFileSync. A caller who can supply the code can read and write files as the server OS user, and can persist code execution by writing a .pth file into the server virtualenv's site-packages. The usual remote path is FastMCP's GenerativeUI provider, which registers the MCP tool generate_prefab_ui and forwards that tool's code argument into this sandbox. On a FastMCP server with no authentication configured, any client who can reach the server can call the tool. With authentication, any client allowed to call tools can. Generative UI is opt-in, and the host must have Deno installed. Confirmed on prefab-ui 0.20.2. Fixed in 0.21.0: after the runtime and Prefab sources load, the runner revokes Deno read, write, and network permission before it accepts code, the process is started with --no-prompt so a permission request cannot grant them again, and bootstrap network access is limited to cdn.jsdelivr.net. The fix is commit 030f074 (pull request 538).
Sursa: NVD · CNA: reefs@jfrog.com
Cum îl remediezi, pas cu pas
Verifică dacă ești afectat
Identifică toate sistemele care rulează PrefectHQ Prefab-ui și compară versiunea lor cu versiunile afectate.
Actualizează la o versiune remediată
- Actualizează Prefab-ui la 0.21.0 sau mai nou.
Confirmă remedierea
Verifică dacă toate sistemele afectate raportează acum o versiune remediată și revezi avizul furnizorului: remedierile sunt uneori revizuite.
Ți-a fost util?
Cum poate fi exploatată
- Vector de atac
- Rețea
- Complexitatea atacului
- Scăzut
- Privilegii necesare
- Niciunul
- Interacțiune cu utilizatorul
- Niciunul
- Domeniu de impact
- Schimbat
- Confidențialitate
- Ridicat
- Integritate
- Ridicat
- Disponibilitate
- Ridicat
Valorile în roșu fac vulnerabilitatea mai ușor de exploatat sau mai gravă. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Produse afectate
| Produse afectate | Versiuni |
|---|---|
| PrefectHQ Prefab-ui | ≥ 0.14.0, < 0.21.0 |
Tip de slăbiciune
Cronologie
- Publicat:
- Ultima modificare:
Întrebări frecvente
Este CVE-2026-120338 exploatată?
Până acum nu există exploatări confirmate în catalogul CISA KEV. Scorul EPSS estimează o probabilitate de 1.0% de exploatare în următoarele 30 de zile.
Care este scorul CVSS pentru CVE-2026-120338?
CVE-2026-120338 are un scor de bază CVSS 3.1 de 10.0 (critic).
Ce versiuni sunt afectate?
Prefecthq Prefab-ui (≥ 0.14.0, < 0.21.0)
Există patch pentru CVE-2026-120338?
Înregistrarea oficială trimite la avize sau patch-uri ale producătorului; vezi „Ce trebuie să faci” mai sus.
Referințe
- github.com/PrefectHQ/prefab
- github.com/PrefectHQ/prefab/commit/030f074f85e0b1be0dd44b0283185aecb26337a2
- github.com/PrefectHQ/prefab/pull/538
- github.com/PrefectHQ/prefab/releases/tag/v0.14.0
- github.com/PrefectHQ/prefab/releases/tag/v0.20.2
- github.com/PrefectHQ/prefab/releases/tag/v0.21.0
- github.com/PrefectHQ/prefab/security/advisories/GHSA-595q-jv4r-q7j9
- pypi.org/project/prefab-ui/
- pypi.org/project/prefab-ui/0.21.0/
Date: NVD, CVE.org (cvelistV5), CISA KEV și FIRST EPSS. Rezumat scris de RedCVE cu ajutorul AI, pe baza datelor oficiale.