Vulnerabilities in pkg:npm/tiddlywiki

PACKAGE
Advisory Identifier: GHSA-cr9c-rhq6-vh53
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/tiddlywiki

1 Known Advisory Record(s)

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

CVE Identifier CVE-2022-29351
GHSA Identifier GHSA-cr9c-rhq6-vh53
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Withdrawn
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

tiddlywiki fixed: Latest secure release
npm install tiddlywiki@Latest secure release
Verify Direct and Transitive Dependencies

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

## Withdrawn Advisory This 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. ## Original Description An 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.

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?
CVE-2022-29351 is a security vulnerability in Withdrawn involving Code execution via SVG file upload in tiddlywiki under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Withdrawn versions are affected?
Affected versions include releases prior to current release patches across affected packages: tiddlywiki.
What version fixes CVE-2022-29351?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is tiddlywiki affected?
Yes, tiddlywiki is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-29351?
CVE-2022-29351 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-29351?
CVE-2022-29351 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check npm dependencies for CVE-2022-29351?
Run the dependency tree command: 'npm ls tiddlywiki'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}