CVE-2020-7777
HIGH 7.2CVSS 3.1Code Injection in jsen
This affects all versions of package jsen. If an attacker can control the schema file, it could run arbitrary JavaScript code on the victim machine. In the module description and README file there is no mention about the risks of untrusted schema files, so I assume that this is applicable. In particular the required field of the schema is not properly sanitized. The resulting string that is build based on the schema definition is then passed to a Function.apply();, leading to an Arbitrary Code Execution.
- Published
- 23 Nov 2020
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-vm64-cfqx-3698
- Sources
- NVDJSONOSV GHSA-vm64-cfqx-3698JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jsen_project | jsencpe:2.3:a:jsen_project:jsen:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | jsen | <= 0.6.6 |
References
- https://github.com/bugventure/jsen/blob/master/lib/jsen.js%23L875 · Broken Link
- https://snyk.io/vuln/SNYK-JS-JSEN-1014670 · Exploit, Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2020-7777 · ADVISORY
- https://github.com/bugventure/jsen/blob/master/lib/jsen.js#L875 · WEB
- https://security.snyk.io/vuln/SNYK-JS-JSEN-1014670 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Nov 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Feb 2022)