Skip to content

fetch of raw.githubusercontent.com may fail for GitHub rate limits #3

Description

@ElectricNroff

for https://github.com/dwelch2344/cve-ref-archival/blob/24ca51169ff07766fc5d35a2ab3bc8b2a47c195c/src/engine/cve/api.ts#L20-L21

const url = `https://raw.githubusercontent.com/CVEProject/cvelistV5/refs/heads/main/cves/${year}/${prefix}/${cve}.json`
const res = await fetch(url)

This may be adversely affected by "updates to rate limits for requests made without authentication ... downloading files from raw.githubusercontent.com" at https://github.blog/changelog/2025-05-08-updated-rate-limits-for-unauthenticated-requests/

Using https://cveawg.mitre.org/api/cve/${cve} or authenticating to the GitHub API may allow a substantially higher rate.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions