Skip to content

HSEC-2026-0010: jwt misparsing fractional dates - #342

Merged
TristanCacqueray merged 3 commits into
haskell:mainfrom
ulidtko:hsec-2026-0010
Sep 29, 2026
Merged

TristanCacqueray merged 3 commits into
haskell:mainfrom
ulidtko:hsec-2026-0010

Conversation

@ulidtko

@ulidtko ulidtko commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Hi again, HSRT.

This one scores at CVSS 4.5. Reporting in public, because:

  • the only current maintainer had not addressed the proposed patch (nor other patches), for over 180 days;
  • the original report stands open since 2023;
  • and because the impact is, at best, moderate.

Please review & merge.

Advisory

  • It's not duplicated
  • All fields are filled
  • It is validated by hsec-tools
    • 🚫 I could not install hsec-tools — the version in main fails build with:
      Error: [Cabal-7125]
      Failed to download zip-archive-0.4.3.2 (which is required by exe:hsec-tools from hsec-tools-0.5.0.0). The exception was:
        Unexpected response 403 for http://objects-us-east-1.dream.io/hackage-mirror/package/zip-archive-0.4.3.2.tar.gz
      

@TristanCacqueray

Copy link
Copy Markdown
Collaborator

Thank you for the report @ulidtko , would be nice to get a reply from the maintainer. @puffnfresh

Perhaps the description could explain a bit more what is the vulnerability, e.g. shouldn't it be https://cwe.mitre.org/data/definitions/613.html ?

@ulidtko

ulidtko commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

shouldn't it be https://cwe.mitre.org/data/definitions/613.html

Well, the core bug as I see it, is CWE-681 Incorrect Conversion between Numeric Types.

But in-context, I agree CWE-613 Insufficient Session Expiration can definitely arise in callers to jwt lib.

Since adrisory.cwe is a list, I'll add both.

@TristanCacqueray TristanCacqueray left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, glad it got fixed!

@ulidtko

ulidtko commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

I think this one is ready to merge now 🤔 Thanks to Brian & whomever pinged him.

I won't bother requesting a CVE — getting fixed version was all I wanted.

@TristanCacqueray
TristanCacqueray merged commit 1c6b78c into haskell:main Sep 29, 2026
3 checks passed
@ulidtko
ulidtko deleted the hsec-2026-0010 branch September 29, 2026 13:53
@ulidtko

ulidtko commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Hey @TristanCacqueray — it didn't appear in GH pages build after merge, please take a look 🙏

@blackheaven

Copy link
Copy Markdown
Collaborator

It was not in the appropriate folder, I have fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants