9.6

CVE-2021-32827: mock-server mockserver Injection

CVSS: 9.6v3.1CriticalModified
AliasesGHSA-v3cg-h3f6-2242
Published 16-08-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-32827 is a critical (CVSS 9.6) Injection vulnerability in mock-server mockserver. EPSS estimates a 2.16% chance of exploitation in the next 30 days, higher than 81.9% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.6/10
010
Critical · v3.1 (NVD)
EPSS score
2.16%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 16-08-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

Description

MockServer is open source software which enables easy mocking of any system you integrate with via HTTP or HTTPS. An attacker that can trick a victim into visiting a malicious site while running MockServer locally, will be able to run arbitrary code on the MockServer machine. With an overly broad default CORS configuration MockServer allows any site to send cross-site requests. Additionally, MockServer allows you to create dynamic expectations using Javascript or Velocity templates. Both engines may allow an attacker to execute arbitrary code on-behalf of MockServer. By combining these two issues (Overly broad CORS configuration + Script injection), an attacker could serve a malicious page so that if a developer running MockServer visits it, they will get compromised. For more details including a PoC see the referenced GHSL-2021-059.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

2.16%

Chance of exploitation in the next 30 days

Percentile

82%

Versus all other CVEs

30-day change

0.00 pp

From 2.16% on 20-09-2026

20-09-202620-10-2026
EPSS score
2.16%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Ghsl 2021 059 Mockserver

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Mock-server1 product
Oracle1 product
Org.mock-server1 product
  • mockserver≤ 5.11.2

3 vendors · 3 products

References

5 links