CVE-2022-41777: Nadesiko3 Nadesiko3 Allows Remote Attacker To Vulnerability

MODERATE
Advisory Identifier: GHSA-x2jx-w3wm-9p3p
CVSS 5.3
CWE-703 CWE-755
Published
Advisory Summary

CVE-2022-41777 is a MODERATE (CVSS 5.3) nadesiko3 allows remote attacker to vulnerability (CWE-703: Improper Check or Handling of Exceptional Conditions) affecting Nadesiko3 libraries in the npm ecosystem. The issue involves nadesiko3 allows remote attacker to inject invalid value to decodeuricomponent of nako3edit. Remediation is available by upgrading affected packages to version 3.3.75.

CVE-2022-41777 at a Glance

CVE Identifier CVE-2022-41777
GHSA Identifier GHSA-x2jx-w3wm-9p3p
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-703: Improper Check or Handling of Exceptional Conditions
Affected Product Nadesiko3
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

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 None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2022-41777

To remediate this vulnerability, upgrade all affected Nadesiko3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

nadesiko3 fixed: 3.3.75
npm install nadesiko3@3.3.75
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 nadesiko3

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2022-41777, inspect your project dependencies using npm:

npm ls nadesiko3

Analyze the terminal output to locate any version of Nadesiko3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.75), your application is affected.

Note: The npm ls nadesiko3 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-703: Improper Check or Handling of Exceptional Conditions, where the product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product. In Nadesiko3, 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

Nako3edit is the editor component of Nadeshiko 3, a programming language developed based on Japanese. Improper check or handling of exceptional conditions in Nako3edit v3.3.74 and earlier allows a remote attacker to inject an invalid value to decodeURIComponent of nako3edit, which may lead the server to crash.

CVE-2022-41777 Affected Nadesiko3 Versions

1 component(s)
Fixed Versions:
3.3.75
Product / Package Ecosystem Affected Versions Fixed Version
nadesiko3
npm
< 3.3.75
3.3.75

References

Frequently Asked Questions

What is CVE-2022-41777?
CVE-2022-41777 is a security vulnerability in Nadesiko3 involving nadesiko3 allows remote attacker to inject invalid value to decodeURIComponent of nako3edit under CWE-703: Improper Check or Handling of Exceptional Conditions.
Which Nadesiko3 versions are affected?
Affected versions include releases prior to 3.3.75 across affected packages: nadesiko3.
What version fixes CVE-2022-41777?
Upgrading to 3.3.75 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nadesiko3 affected?
Yes, nadesiko3 is affected in releases prior to 3.3.75. Upgrade your dependency to 3.3.75 or later.
What is the CVSS score of CVE-2022-41777?
CVE-2022-41777 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2022-41777?
CVE-2022-41777 is classified under CWE-703: Improper Check or Handling of Exceptional Conditions (The product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product.).
How can I check npm dependencies for CVE-2022-41777?
Run the dependency tree command: 'npm ls nadesiko3'. 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-x2jx-w3wm-9p3p",
  "modified" : "2022-12-05T23:29:35Z",
  "published" : "2022-12-05T06:30:22Z",
  "aliases" : [ "CVE-2022-41777" ],
  "summary" : "nadesiko3 allows remote attacker to inject invalid value to decodeURIComponent of nako3edit",
  "details" : "Nako3edit is the editor component of Nadeshiko 3, a programming language developed based on Japanese. Improper check or handling of exceptional conditions in Nako3edit v3.3.74 and earlier allows a remote attacker to inject an invalid value to decodeURIComponent of nako3edit, which may lead the server to crash.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "nadesiko3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.75"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-41777"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/issues/1325"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/issues/1347"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kujirahand/nadesiko3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kujirahand/nadesiko3/releases/tag/3.3.75"
  }, {
    "type" : "WEB",
    "url" : "https://jvn.jp/en/jp/JVN56968681/index.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-703", "CWE-755" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-05T23:29:35Z",
    "nvd_published_at" : "2022-12-05T04:15:00Z"
  }
}