Vulnérabilité dans github.com/siyuan-note/siyuan/kernel (CVE-2026-54070)
Résumé
Vulnérabilité dans github.com/siyuan-note/siyuan/kernel (CVE-2026-54070). Des informations confidentielles peuvent être exposées. Exploitable via renderPackageREADME. Atténuation : mise à jour vers 0.0.0-20260628153353-2d5d72223df4 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, renderPackageREADME in kernel/bazaar/readme.go renders a Bazaar package README from Markdown to HTML with the lute engine and SetSanitize(true). The lute sanitizer is an event-handler blocklist: allowAttr rejects only attribute names present in a fixed eventAttrs map copied from the w3schools legacy handler list. That map omits modern event handlers. onpointerover, onpointerdown, onauxclick, onbeforetoggle, onfocusin, onanimationstart, and ontransitionend are not in the list, so the sanitizer passes them through verbatim on any tag. The frontend assigns the rendered HTML to mdElement.innerHTML in app/src/config/bazaar.ts with no client-side DOMPurify on this path, into a normal element in the main document (no iframe, no sandbox). The kernel sends no Content-Security-Policy, X-Frame-Options, or X-Content-Type-Options header on any response, so an inline handler runs when its event fires. The README is rendered when an Administrator opens a package in Settings → Marketplace, after the one-time marketplace trust consent. Install is not required. Result: a third-party Bazaar package author runs JavaScript in the Administrator's authenticated SiYuan origin when the Administrator views and interacts with the package listing, and gains full control of the workspace. This vulnerability is fixed in 3.7.0.
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-54070 a été découverte dans github.com/siyuan-note/siyuan/kernel.
Des attaquants peuvent cibler un point d'entrée spécifique comme renderPackageREADME à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 7.1/10.
Action : mettez à jour github.com/siyuan-note/siyuan/kernel vers 0.0.0-20260628153353-2d5d72223df4 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/siyuan-note/siyuan/kernel CVE-2026-54070 » sur le site de l'éditeur.
CVE-2026-54070 (github.com/siyuan-note/siyuan/kernel) — CWE-184 / CVSS v3 7.1
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : renderPackageREADME / allowAttr / eventAttrs / onpointerover
Correctif : 0.0.0-20260628153353-2d5d72223df4 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-184) affecte github.com/siyuan-note/siyuan/kernel. Les attaquants atteignent le code vulnérable via renderPackageREADME sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/siyuan-note/siyuan/kernel. Surface d'attaque : renderPackageREADME / allowAttr / eventAttrs / onpointerover.
Gravité : Élevée (CVSS 7.1/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 0.0.0-20260628153353-2d5d72223df4.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'github.com/siyuan-note/siyuan/kernel' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/siyuan-note/siyuan/kernelを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260628153353-2d5d72223df4ステージング環境で 0.0.0-20260628153353-2d5d72223df4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com