<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T08:36:49.446988+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/fkie_cve-2026-142550</id>
    <title>fkie_cve-2026-142550</title>
    <updated>2026-12-04T08:36:49.448221+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>JWTKit is a Swift library for signing and verifying JSON Web Tokens. Prior to 5.8.0, JWTKeyCollection.verify() in Sources/JWTKit/JWTKeyCollection.swift parses the JWT header using JWTParser.parseHeader() in Sources/JWTKit/JWTParser.swift before selecting a signer and verifying the signature. During parsing, JWTHeaderField.init(from:) in Sources/JWTKit/JWTHeaderField.swift decodes JSON numbers as Double and converts integral values to Int without checking the representable range. A remote unauthenticated attacker can provide an extremely large integral header value that triggers a Swift runtime trap and crashes the application without a valid signature or knowledge of the signing key. This issue is fixed in version 5.8.0.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-142550"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-hfm2-66rr-3mcf</id>
    <title>GHSA-hfm2-66rr-3mcf — JWTKit: Unauthenticated denial of service when parsing malicious JWT headers</title>
    <updated>2026-12-04T08:36:49.448296+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> SwiftURL: github.com/vapor/jwt-kit</p>
<p>### Summary
JWTKit can crash while parsing a JWT header containing an extremely large integer value.</p>
<p>When decoding header fields, the library parses JSON numbers as Double and converts integral values to Int without checking whether the value fits into the valid Int range. A header containing a value such as 1e300 causes a Swift runtime trap.</p>
<p>Because JWT headers are parsed before signature verification, an attacker can crash the application by sending a specially crafted JWT without requiring a valid signature.</p>
<p>### Details
`JWTKeyCollection.verify()` parses the JWT header before selecting a signer and verifying the token signature.</p>
<p>The header is decoded by `JWTParser.parseHeader()`, which deserializes the JSON into JWTHeader. During this process, `JWTHeaderField.init(from:)` decodes JSON numbers as Double and converts integral values to Int without validating that they fit within the representable Int range:</p>
<p>```
let doubleValue = try container.decode(Double.self)
if doubleValue.truncatingRemainder(dividingBy: 1) == 0 {
    self = .int(Int(doubleValue))
}
```</p>
<p>An attacker can supply an extremely large integral value (for example, 1e300), causing the Int(doubleValue) conversion to trigger a Swift runtime trap. Because this occurs while parsing the JWT header, the application crashes before signature verification.</p>
<p>Affected code:</p>
<p>* Sources/JWTKit/JWTKeyCollection.swift (verify() - parseHeader())
* Sources/JWTKit/JWTParser.swift (parseHeader())
* Sources/JWTKit/JWTHeaderFi…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-hfm2-66rr-3mcf"/>
  </entry>
</feed>
