CVE-2020-20697: Khodakhah/nodcms NodCMS Cross Site Scripting Vulnerability Vulnerability
MODERATECVE-2020-20697 is a MODERATE (CVSS 4.8) nodcms cross site scripting vulnerability vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Khodakhah/nodcms libraries in the Packagist ecosystem. The issue involves nodcms cross site scripting vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2020-20697 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2020-20697
To remediate this vulnerability, upgrade all affected Khodakhah/nodcms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade khodakhah/nodcms to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for khodakhah/nodcms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-20697, inspect your project dependencies for Khodakhah/nodcms:
inspect dependencies for khodakhah/nodcms
Analyze the terminal output to locate any version of Khodakhah/nodcms 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: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Khodakhah/nodcms, 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-2020-20697 Affected Khodakhah/nodcms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
khodakhah/nodcms
|
Packagist |
≤ 3.0
|
|
References
Frequently Asked Questions
What is CVE-2020-20697?
Which Khodakhah/nodcms versions are affected?
What version fixes CVE-2020-20697?
Is khodakhah/nodcms affected?
What is the CVSS score of CVE-2020-20697?
What CWE is associated with CVE-2020-20697?
How can I check Packagist dependencies for CVE-2020-20697?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7xqx-xwg9-jx34",
"modified" : "2023-06-27T22:22:11Z",
"published" : "2023-06-20T15:31:08Z",
"aliases" : [ "CVE-2020-20697" ],
"summary" : "NodCMS Cross Site Scripting vulnerability",
"details" : "Cross Site Scripting vulnerability in khodakhah NodCMS v.3.0 allows an attacker with administrative privileges to execute arbitrary code and gain access to sensitive information via a crafted script to the address parameter.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "khodakhah/nodcms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-20697"
}, {
"type" : "WEB",
"url" : "https://github.com/khodakhah/nodcms/issues/41"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/khodakhah/nodcms"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-21T22:10:00Z",
"nvd_published_at" : "2023-06-20T15:15:10Z"
}
}