# net-imap vulnerable to STARTTLS stripping via invalid response timing

Advisory record · `GHSA-vcgp-9326-pqcp`

- **Identifiers:** `GHSA-vcgp-9326-pqcp` · `CVE-2026-42246`
- **State:** Confirmed
- **Severity:** CVSS 7.6 High
- **Critical:** No
- **Weakness (CWE):** [CWE-325](https://cwe.mitre.org/data/definitions/325.html) · [CWE-392](https://cwe.mitre.org/data/definitions/392.html) · [CWE-393](https://cwe.mitre.org/data/definitions/393.html) · [CWE-636](https://cwe.mitre.org/data/definitions/636.html) · [CWE-754](https://cwe.mitre.org/data/definitions/754.html) · [CWE-841](https://cwe.mitre.org/data/definitions/841.html)
- **Tags:** [CWE-325](https://agentprime.io/advisories/tag/cwe-325.md) · [CWE-392](https://agentprime.io/advisories/tag/cwe-392.md) · [CWE-393](https://agentprime.io/advisories/tag/cwe-393.md) · [CWE-636](https://agentprime.io/advisories/tag/cwe-636.md) · [CWE-754](https://agentprime.io/advisories/tag/cwe-754.md) · [CWE-841](https://agentprime.io/advisories/tag/cwe-841.md)
- **Published:** 4 May 2026
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 4 May 2026, 22:01 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `net-imap` (RubyGems): affected `>=0.6.0, <0.6.4 || >=0.5.0, <0.5.14 || >=0.4.0, <0.4.24 || <0.3.10`; fixed in `0.6.4`, `0.5.14`, `0.4.24`, `0.3.10`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.6 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0031, the 24th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:16 UTC: First seen by agentprime
- 31 Oct 2026, 15:16 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-vcgp-9326-pqcp)

## Sources

- [GitHub Advisory Database: GHSA-vcgp-9326-pqcp](https://github.com/advisories/GHSA-vcgp-9326-pqcp)
- [OSV: GHSA-vcgp-9326-pqcp](https://osv.dev/vulnerability/GHSA-vcgp-9326-pqcp)
- <https://github.com/ruby/net-imap/security/advisories/GHSA-vcgp-9326-pqcp>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42246>
- <https://github.com/ruby/net-imap/commit/0ede4c40b1523dfeaf95777b2678e54cc0fd9618>
- <https://github.com/ruby/net-imap/commit/24a4e770b43230286a05aa2a9746cdbb3eb8485e>
- <https://github.com/ruby/net-imap/commit/97e2488fb5401a1783bddd959dde007d9fbce42c>
- <https://github.com/ruby/net-imap/commit/f79d35bf5833f186e81044c57c843eda30c873da>
- <https://github.com/ruby/net-imap>
- <https://github.com/ruby/net-imap/releases/tag/v0.3.10>
- <https://github.com/ruby/net-imap/releases/tag/v0.4.24>
- <https://github.com/ruby/net-imap/releases/tag/v0.5.14>
- <https://github.com/ruby/net-imap/releases/tag/v0.6.4>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42246.yml>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-vcgp-9326-pqcp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-vcgp-9326-pqcp/>. Everything for agents: <https://agentprime.io/llms.txt>.
