# CVE-2022-41042: Visual Studio Code Information Disclosure Vulnerability

Status: published. Published: 2022-10-11. Updated: 2026-11-02.

Visual Studio Code Information Disclosure Vulnerability

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: af854a3a-2127-422b-91ae-364da2661108) — https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-41042

## Affected products and versions

- Microsoft / Visual Studio Code: ≥ 1.0.0; < 1.72.1 (affected, custom). Source: CNA: microsoft; platforms: Unknown

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:microsoft:visual_studio_code:-:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 7.4 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N/E:U/RL:O/RC:C; source: CNA: microsoft

- CVSS 3.1: 7.4 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N; source: NVD: secure@microsoft.com

- CISA KEV: No listing in collected sources

- EPSS: 2.48% as of 2026-11-02; percentile 84.60%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-41042 (CNA: microsoft; vendor-advisory)

- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-41042 (ADP: CVE; x_transferred)

- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-41042 (secure@microsoft.com)

- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-41042 (af854a3a-2127-422b-91ae-364da2661108; Patch, Vendor Advisory)

## Provenance

- CNA: microsoft: https://www.cve.org/CVERecord?id=CVE-2022-41042; retrieved 2026-11-02; source updated 2026-11-02

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-41042; retrieved 2026-11-03; source updated 2026-11-02

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2022-41042; retrieved 2026-11-02; source updated Not reported

Revision: 5a03d8fafc18341551f880d26b516063b49078a1f56224220f7a693a79c5d09b

Canonical: https://y2.dev/cve/CVE-2022-41042

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.