Vulnerabilities in pkg:npm/tiddlywiki
PACKAGECVE-2022-29351 is a CRITICAL (CVSS 9.8) code execution vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Withdrawn libraries in the npm ecosystem. The issue involves code execution via svg file upload in tiddlywiki. Remediation is available in the latest vendor maintenance releases.
pkg:npm/tiddlywiki
Vulnerability advisories affecting package pkg:npm/tiddlywiki. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-cr9c-rhq6-vh53 | CVE-2022-29351 | CRITICAL | Withdrawn: Code execution via SVG file upload in tiddlywiki |
CVE-2022-29351 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-29351
To remediate this vulnerability, upgrade all affected Withdrawn dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install tiddlywiki@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls tiddlywiki
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-29351, inspect your project dependencies using npm:
npm ls tiddlywiki
Analyze the terminal output to locate any version of Withdrawn in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls tiddlywiki command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Withdrawn, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-29351 Affected Withdrawn Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tiddlywiki
|
npm |
≤ 5.2.2
|
|
References
Frequently Asked Questions
What is CVE-2022-29351?
Which Withdrawn versions are affected?
What version fixes CVE-2022-29351?
Is tiddlywiki affected?
What is the CVSS score of CVE-2022-29351?
What CWE is associated with CVE-2022-29351?
How can I check npm dependencies for CVE-2022-29351?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cr9c-rhq6-vh53",
"modified" : "2024-05-17T18:36:05Z",
"published" : "2022-05-17T00:01:44Z",
"withdrawn" : "2024-05-17T18:36:05Z",
"aliases" : [ "CVE-2022-29351" ],
"summary" : "Withdrawn: Code execution via SVG file upload in tiddlywiki",
"details" : "## Withdrawn Advisory\nThis advisory has been withdrawn because it has been found to not be valid. Please see the issue [here](https://github.com/Jermolene/TiddlyWiki5/issues/7384) for more information.\n\n## Original Description\n\nAn arbitrary file upload vulnerability in the file upload module of Tiddlywiki5 v5.2.2 allows attackers to execute arbitrary code via a crafted SVG file.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "tiddlywiki"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "5.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-29351"
}, {
"type" : "WEB",
"url" : "https://github.com/Jermolene/TiddlyWiki5/issues/7384"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Jermolene/TiddlyWiki5"
}, {
"type" : "WEB",
"url" : "https://github.com/jimcola99/corruptsvgfile"
}, {
"type" : "WEB",
"url" : "https://www.youtube.com/watch?v=F_DBx4psWns"
}, {
"type" : "WEB",
"url" : "http://tiddlywiki5.com"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-05-25T20:13:42Z",
"nvd_published_at" : "2022-05-16T14:15:00Z"
}
}