LiveActive security incident?Get immediate response
CVE Record

CVE-2020-7777: Arbitrary Code Execution

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.

HighCVSS 7.2Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2020-7777 affects the npm package jsen. If an attacker can control a schema file processed by the application, that schema can cause JavaScript code to run on the victim system. Business risk depends on whether jsen is present and whether schemas can come from untrusted users or external sources.

Executive priority

Prioritize review for systems that ingest customer-supplied configuration, validation schemas, or tenant-managed data models. Treat internet-facing or multi-tenant uses as urgent. Lower priority may be appropriate where jsen is absent or schemas are fully controlled and static.

Technical view

The issue is arbitrary code execution in jsen. The source bundle says schema data, particularly the required field, is not properly sanitized before generated JavaScript is passed to Function.apply(). The CVSS 3.1 score is 7.2 high, with high privileges required and high confidentiality, integrity, and availability impact.

Likely exposure

Exposure is likely limited to Node.js applications that depend on jsen and process attacker-controlled or untrusted schema files. Applications using only trusted, static schemas have materially lower practical exposure, but should still review dependency presence and schema provenance.

Exploitation context

The bundle does not show CISA KEV listing or active exploitation evidence. Exploitation requires control over schema input, not just network reachability. The reported exploitability is plausible where privileged services validate externally supplied schemas.

Researcher notes

Key evidence is source-bundle derived: arbitrary code execution in jsen through unsanitized schema required fields and Function.apply(). The bundle does not provide CWE mapping, a fixed version, proof of active exploitation, or detailed affected-version granularity beyond the package-level statement.

Mitigation direction

  • Inventory applications and lockfiles for the jsen package.
  • Do not process untrusted schema files with jsen.
  • Restrict schema creation and modification to trusted administrators.
  • Check Snyk and project guidance; no fixed version is named in the bundle.
  • If no maintained fix exists, plan migration away from jsen.

Validation and detection

  • Confirm whether jsen appears in package manifests, lockfiles, or SBOMs.
  • Map all code paths that load or accept schema files.
  • Verify schemas cannot be supplied by users, tenants, APIs, or external storage.
  • Review production configuration for writable schema locations.
  • Track advisory status for any vendor-recommended remediation.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2020-7777 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.2 (3.1)
Known Exploited
No
Published

Vector: 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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.2CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C1.25.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.2High
CVSS 3.1 vector shape for CVE-2020-7777Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: 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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/ajsen0Listed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.