# CVE-2020-7777: Arbitrary Code Execution

- Severity: High 7.2 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.11%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-11-23T15:40:15.585Z
- Modified: 2026-06-17T03:25:25.720Z
- Also known as: GHSA-vm64-cfqx-3698
- Weaknesses: CWE-94
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- jsen: before unspecified
- jsen (npm): up to 0.6.6
- jsen_project jsen: no versions given

## Every score

- snyk: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-JSEN-1014670> (exploit, third-party-advisory)
- <https://github.com/bugventure/jsen/blob/master/lib/jsen.js%23L875> (broken-link)
- <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)

## Sources

- CVE List: [CVE-2020-7777](https://www.cve.org/CVERecord?id=CVE-2020-7777), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-vm64-cfqx-3698](https://github.com/advisories/GHSA-vm64-cfqx-3698), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-7777](https://nvd.nist.gov/vuln/detail/CVE-2020-7777), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7777 · Whole record: https://cve.day/CVE-2020-7777.json · Rebuilt by cve.day 2026-11-25T22:57:55.908Z
