Vulnerabilities in pkg:npm/frourio
PACKAGECVE-2022-23623 is a HIGH (CVSS 8.1) validation bypass vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Frourio libraries in the npm ecosystem. The issue involves validation bypass in frourio. Remediation is available by upgrading affected packages to version 0.26.0.
pkg:npm/frourio
Vulnerability advisories affecting package pkg:npm/frourio. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8xxm-h73r-ghfj | CVE-2022-23623 | HIGH | Validation bypass in frourio |
CVE-2022-23623 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-23623
To remediate this vulnerability, upgrade all affected Frourio 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 frourio@0.26.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls frourio
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-23623, inspect your project dependencies using npm:
npm ls frourio
Analyze the terminal output to locate any version of Frourio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.26.0), your application is affected.
Note: The npm ls frourio 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Frourio, 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-23623 Affected Frourio Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
frourio
|
npm |
< 0.26.0
|
0.26.0
|
References
Frequently Asked Questions
What is CVE-2022-23623?
Which Frourio versions are affected?
What version fixes CVE-2022-23623?
Is frourio affected?
What is the CVSS score of CVE-2022-23623?
What CWE is associated with CVE-2022-23623?
How can I check npm dependencies for CVE-2022-23623?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8xxm-h73r-ghfj",
"modified" : "2023-07-13T19:05:16Z",
"published" : "2022-02-07T22:37:45Z",
"aliases" : [ "CVE-2022-23623" ],
"summary" : "Validation bypass in frourio",
"details" : "## 日本語\n\n### 影響\nv0.26.0以前のfrourioを使用している、かつvalidators/を利用している場合、ネストされたバリデータがリクエストのボディーとクエリに対して正しく働かないケースがあります。また、リクエストに対してバリデーションが効かなくなる入力があります。\n\n### パッチ\nfrourioをv0.26.0かそれ以降のバージョンにアップデートをお願いします。frourio を使用したプロジェクトには `class-transformer` と `reflect-metadata` の依存への追加も必要となります。\n\n### ワークアラウンド\ncontroller側で自分でclass-transformerを使用してチェックする、vaildatorを使わない、など。\n\n### さらなる情報\n\nこのセキュリティ勧告に関する質問やコメントについては、以下の方法でお問い合わせいただけます。\n* [frourio](https://github.com/frouriojs/frourio)にIssueを開く。\n\n## English\n\n### Impact\nFrourio users who uses frourio version prior to v0.26.0 and integration with class-validator through `validators/` folder. Validators does not work properly for request bodies and queries in specific situations. Addtionally, some kind of input is not validated. (false positives)\n\n### Patches\nPlease update your frourio to v0.26.0 or later. You also need to install `class-transformer` and `reflect-metadata` to your project.\n\n### Workarounds\nValidate objects from request with class-transformer in controllers by yourself, or prevent using validators.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [frourio](https://github.com/frouriojs/frourio)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "frourio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.26.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/frouriojs/frourio/security/advisories/GHSA-8xxm-h73r-ghfj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23623"
}, {
"type" : "WEB",
"url" : "https://github.com/frouriojs/frourio/commit/7c19ac5363305b81b1c6b5232620228763d427af"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/frouriojs/frourio"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321", "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-07T22:37:45Z",
"nvd_published_at" : "2022-02-07T23:15:00Z"
}
}