CVE-2026-42897: Microsoft Exchange Server - Stored XSS

2026-11-29 PoC Public

Description

Microsoft Exchange Server contains a stored XSS caused by improper neutralization of input during web page generation, letting unauthorized attackers perform spoofing over a network, exploit requires no special privileges.

Details

CVE
CVE-2026-42897 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-42897

info:
  name: Microsoft Exchange Server - Stored XSS
  author: 0x_Akoko
  severity: high
  description: |
    Microsoft Exchange Server contains a stored XSS caused by improper neutralization of input during web page generation, letting unauthorized attackers perform spoofing over a network, exploit requires no special privileges.
  impact: |
    Unauthorized attackers can perform spoofing attacks over the network, potentially leading to user impersonation or session hijacking.
  remediation: |
    Update to the latest version of Microsoft Exchange Server.
  reference:
    - https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-42897
    - https://techcommunity.microsoft.com/blog/exchange/addressing-exchange-server-may-2026-vulnerability-cve-2026-42897/4518498
    - https://techcommunity.microsoft.com/blog/exchange/released-june-2026-exchange-server-security-updates/4524491
    - https://learn.microsoft.com/en-us/exchange/new-features/build-numbers-and-release-dates
    - https://nvd.nist.gov/vuln/detail/CVE-2026-42897
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
    cvss-score: 8.1
    cve-id: CVE-2026-42897
    epss-score: 0.00991
    epss-percentile: 0.61429
    cwe-id: CWE-79
    cpe: cpe:2.3:a:microsoft:exchange_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: microsoft
    product: exchange_server
    shodan-query:
      - http.headers:"X-OWA-Version"
      - http.title:"Outlook Web App"
    fofa-query:
      - header="X-OWA-Version"
      - app="Microsoft-Exchange"
  tags: cve,cve2026,microsoft,exchange,owa,xss,kev,vkev,passive,vd

http:
  - method: GET
    path:
      - "{{BaseURL}}/owa/"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200 || status_code == 302 || status_code == 301 || status_code == 401 || status_code == 403'
          - 'contains(to_lower(header), "x-owa-version")'

      - type: dsl
        dsl:
          - 'compare_versions(exchver, "< 15.1.2507.69") && compare_versions(exchver, ">= 15.1.0.0")'
          - 'compare_versions(exchver, "< 15.2.1544.41") && compare_versions(exchver, ">= 15.2.221.12")'
          - 'compare_versions(exchver, "< 15.2.1748.46") && compare_versions(exchver, ">= 15.2.1748.10")'
          - 'compare_versions(exchver, "< 15.2.2562.43") && compare_versions(exchver, ">= 15.2.2562.17")'
        condition: or

    extractors:
      - type: regex
        name: exchver
        part: header
        group: 1
        regex:
          - '(?i)X-OWA-Version:\s*([0-9]+\.[0-9]+\.[0-9]+(?:\.[0-9]+)?)'
        internal: true

      - type: dsl
        dsl:
          - exchver
# digest: 4a0a00473045022063757fea17ce9e097851e170e32f2c0fbe6902f9af46ce95d1d09a245b966b2f022100fc85d5b5ea75faf29bf5cad05f6b89d434d60b479745d7cd7c937eb00525ad70:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life