# CVE-2021-29495: Nim stdlib httpClient does not validate peer certificates by default

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- 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): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2021-05-07T15:15:10.000Z
- Modified: 2026-06-17T03:47:45.660Z
- Weaknesses: CWE-295
- Assigned by: GitHub_M

## Description

Nim is a statically typed compiled systems programming language. In Nim standard library before 1.4.2, httpClient SSL/TLS certificate verification was disabled by default. Users can upgrade to version 1.4.2 to receive a patch or, as a workaround, set "verifyMode = CVerifyPeer" as documented.

(As written by CVE List.)

## Affected

- nim-lang security: < 1.4.2
- nim-lang nim: before 1.4.2

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/nim-lang/security/security/advisories/GHSA-9vqv-2jj9-7mqr> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-29495](https://www.cve.org/CVERecord?id=CVE-2021-29495), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-29495](https://nvd.nist.gov/vuln/detail/CVE-2021-29495), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29495 · Whole record: https://cve.day/CVE-2021-29495.json · Rebuilt by cve.day 2026-11-25T22:58:01.232Z
