CVE-2022-0508: @peertube/embed api Server-Side Request Forgery Vulnerability
MODERATECVE-2022-0508 is a MODERATE (CVSS 6.5) server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting @peertube/embed api libraries in the npm ecosystem. The issue involves server-side request forgery in @peertube/embed-api. Remediation is available by upgrading affected packages to version 4.1.0-rc.1.
CVE-2022-0508 at a Glance
Security Impact
CVSS: 6.5
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:L/I:L/A:N).
How to Fix CVE-2022-0508
To remediate this vulnerability, upgrade all affected @peertube/embed api 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 @peertube/embed-api@4.1.0-rc.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @peertube/embed-api
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-0508, inspect your project dependencies using npm:
npm ls @peertube/embed-api
Analyze the terminal output to locate any version of @peertube/embed api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.0-rc.1), your application is affected.
Note: The npm ls @peertube/embed-api 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In @peertube/embed api, 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-0508 Affected @peertube/embed api Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@peertube/embed-api
|
npm |
< 4.1.0-rc.1
|
4.1.0-rc.1
|
References
Frequently Asked Questions
What is CVE-2022-0508?
Which @peertube/embed api versions are affected?
What version fixes CVE-2022-0508?
Is @peertube/embed-api affected?
What is the CVSS score of CVE-2022-0508?
What CWE is associated with CVE-2022-0508?
How can I check npm dependencies for CVE-2022-0508?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mv26-cx23-vrfg",
"modified" : "2022-02-09T22:27:07Z",
"published" : "2022-02-09T00:00:31Z",
"aliases" : [ "CVE-2022-0508" ],
"summary" : "Server-Side Request Forgery in @peertube/embed-api",
"details" : "@peertube/embed-api version 4.0.0 and prior is vulnerable to server-side request forgery.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@peertube/embed-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.0-rc.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.0.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0508"
}, {
"type" : "WEB",
"url" : "https://github.com/chocobozzz/peertube/commit/f33e515991a32885622b217bf2ed1d1b0d9d6832"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chocobozzz/peertube"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/c3724574-b6c9-430b-849b-40dd2b20f23c"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-09T22:27:07Z",
"nvd_published_at" : "2022-02-08T11:15:00Z"
}
}