CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-62204

CVE-2026-62204: Arbitrary Bazaar Package Overwrite in SiYuan via Parameter Mismatch

Alon Barad
Alon Barad
Software Engineer

Oct 23, 2026·5 min read·10 visits

Executive Summary (TL;DR)

Decoupled parameter handling in SiYuan's Bazaar installer allowed package archives to overwrite arbitrary installed plugins without validating package manifest consistency.

An insufficient verification of data authenticity vulnerability in SiYuan prior to version 3.7.4 allows an attacker to overwrite arbitrary installed marketplace packages (plugins, widgets, themes, and templates). By providing a mismatched package name and package archive repository URL during a Bazaar installation request, arbitrary file write into trusted plugin directories can be achieved, enabling persistence and execution across application restarts.

Vulnerability Overview

SiYuan is an open-source personal knowledge management system that supports extensible plugins, widgets, themes, and templates via its built-in marketplace called Bazaar. The system processes installation and update requests for these packages through dedicated kernel endpoints.

In versions of SiYuan prior to 3.7.4, the package installer component suffered from a decoupled parameter verification defect cataloged under CWE-345 (Insufficient Verification of Data Authenticity). When installing or updating a package, the application accepted parameters such as packageName, repoURL, repoHash, and pkgType directly from the client request without enforcing structural consistency between the requested packageName and the internal manifest contained within the downloaded archive.

This flaw exposed an attack surface where an attacker with network access to the API interface or ability to issue requests in a same-origin context could specify a target package name corresponding to a legitimate, highly trusted plugin while directing repoURL to a custom repository containing arbitrary code. Upon extraction, the server overwrote existing files within the target package directory.

Root Cause Analysis

The underlying flaw resides within kernel/bazaar/install.go inside the installPackage function. The application logic derived the destination path (installPath) on the local filesystem directly from the client-supplied packageName parameter.

The installation workflow executed three primary stages without proper validation bounds:

  1. Accept packageName and compute installPath relative to the workspace directory.
  2. Fetch the target package archive ZIP file from repoURL and extract its contents into a temporary directory.
  3. Copy the extracted files directly into installPath, overwriting existing files if present.

Because the installer did not parse or validate the inner manifest file (e.g., plugin.json or theme.json) located inside the downloaded ZIP archive prior to copying, the internal package identity was never compared against packageName. Furthermore, during fresh installations (update = false), the system failed to verify whether installPath was empty before performing file extraction and copy operations.

Code Analysis & Patch Inspection

Patch commit 26ccb40d390eb7d9b04673629a58ab1d69cc7e53 introduced two fundamental validation routines into installPackage in kernel/bazaar/install.go to enforce parameter alignment and prevent directory collision.

First, when update is false, the application checks installPath using os.ReadDir. If the directory exists and contains entries, the installation terminates immediately with marketplace package install path already exists.

Second, after unzipping the archive into a temporary folder, installPackage identifies the mandatory manifest file corresponding to pkgType (e.g., plugin.json). It parses the manifest with ParsePackageJSON and asserts that pkg.Name inside the file equals the request parameter packageName. If a mismatch occurs, execution halts with marketplace package name mismatch.

func installPackage(data []byte, installPath, pkgType, packageName string, update bool) (err error) {
	// Reject overwriting an existing non-empty directory when update is false
	if !update {
		entries, statErr := os.ReadDir(installPath)
		if statErr != nil && !os.IsNotExist(statErr) {
			return statErr
		}
		if 0 < len(entries) {
			return errors.New("marketplace package install path already exists")
		}
	}
 
	tmpPackage := filepath.Join(util.TempDir, "bazaar", "package")
	// ... unzipping code ...
 
	// Validate consistency between package JSON name and requested packageName
	jsonFileName, ok := packageManifestNames[pkgType]
	if !ok {
		return errors.New("invalid marketplace package type")
	}
	pkg, parseErr := ParsePackageJSON(filepath.Join(srcPath, jsonFileName))
	if parseErr != nil || nil == pkg {
		return errors.New("marketplace package manifest not found or invalid")
	}
	if packageName != pkg.Name {
		return fmt.Errorf("marketplace package name mismatch: expected [%s], got [%s]", packageName, pkg.Name)
	}
 
	if err = filelock.Copy(srcPath, installPath); err != nil {
		return
	}
	return nil
}

Exploitation Mechanics

To exploit this vulnerability, an attacker must craft an installation request targeted at the SiYuan API endpoint responsible for Bazaar package installations.

The attacker prepares a malicious package archive containing a plugin.json where name is set to attacker-plugin. Inside index.js, the attacker embeds arbitrary code meant to execute within the context of the application runtime.

The attacker sends an HTTP POST request specifying packageName: "target-legitimate-plugin" and repoURL: "https://attacker.example.com/malicious-repo". The backend processes the request, downloads the payload, and copies index.js into the path corresponding to target-legitimate-plugin.

When SiYuan initializes or reloads the target-legitimate-plugin, the newly overwritten index.js executes. Because SiYuan plugin scripts operate within the client/desktop application execution environment, this grants code execution capabilities under the privilege context of the running user.

Impact Assessment

The CVSS v3.1 base score for CVE-2026-62204 is rated at 6.6 (Medium) with vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L.

Successful exploitation results in severe integrity impact because core files of established plugins can be altered without administrative or file-system-level warnings. An attacker achieves persistent code execution across application restarts.

Confidentiality and availability impacts are assessed as low, as execution is contingent upon user interaction or application reload within local user context. The scope is marked as changed due to the boundary crossing between user-supplied data input and installed system extension modules.

Remediation & Security Guidance

The primary remediation path is updating the SiYuan application to version 3.7.4 or later (or release v3.8.0+), which includes patch commit 26ccb40d390eb7d9b04673629a58ab1d69cc7e53.

If immediate upgrading is not feasible, restrict network access to the API port binding (default localhost) and ensure browser same-origin policies prevent unauthorized cross-origin requests from reaching local SiYuan kernel endpoints.

Regularly inspect the data/plugins/ directory to verify package checksums and detect unauthorized modifications to index.js or configuration files across installed extensions.

Official Patches

SiYuanFix package install validation logic
SiYuan ReleasesOfficial SiYuan v3.8.0 Release

Technical Appendix

CVSS Score
6.6/ 10
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L

Affected Systems

SiYuan personal knowledge management system (versions prior to v3.7.4)
AttributeDetail
CWE IDCWE-345
Attack VectorLocal / API Request
CVSS v3.1 Score6.6 (Medium)
CVSS v4.0 Score5.9 (Medium)
EPSS Score0.00094 (0.56th percentile)
Exploit StatusProof of Concept / Advisory Stage
CISA KEV StatusNot Listed
CWE-345
Insufficient Verification of Data Authenticity

Vulnerability Timeline

Patch commit pushed to SiYuan repository
2026-08-08
GitHub Security Advisory published
2026-08-22
CVE-2026-62204 published
2026-08-22
NVD entry updated with CVSS v3.1 rating
2026-10-12

References & Sources

  • [1]GitHub Security Advisory GHSA-rpx2-p6hp-x5gj
  • [2]SiYuan Commit 26ccb40d390eb7d9b04673629a58ab1d69cc7e53
  • [3]VulnCheck Advisory for CVE-2026-62204
  • [4]SiYuan Release v3.8.0 Tag
  • [5]CVE-2026-62204 Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•24 minutes ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
1 views•10 min read
•about 1 hour ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 2 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 3 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 4 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 5 hours ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
5 views•10 min read