Skip to content

Malformed known-ID aliases in PyPI/npm/Packagist ecosystem exports #6377

Open

Description

@Dimkox

Title: Malformed known-ID aliases in PyPI/npm/Packagist ecosystem exports

Three exported records captured from the official ecosystem ZIP endpoints on 2026-11-17 contain these literal alias values:

Ecosystem Record ID Alias as a JSON string
PyPI GHSA-jf66-3q76-h5p5 "GHSA-jf66-3q76-h5p5,"
npm GHSA-5xf4-f2fq-f69j "SNYK-JS-YARN-537806,"
Packagist DRUPAL-CONTRIB-2026-040 " CVE-2026-49977 "

Sources: PyPI export, npm export, Packagist export. Each member is named <record-id>.json.

The decoded member SHA-256 values are:

  • PyPI: b308a0da902b2574bb4625cd0083387720d27bb8e74a3dbecfdf37d28d4cb73c
  • npm: e9f4f9222be014294a700d9c73fcabe315df134c1ebb828fcf454e02e3bf4c07
  • Packagist: e031b39322b2a6d0e943310218438c92fca56fc16870c3765d02b793003eb4b0

Related: #5095, closed on 2026-05-05, reported the same PyPI alias. A search found no matching issue for the other two record IDs.

These values cause our strict identifier consumer to reject input preparation, because punctuation/outer spaces do not match the advertised GHSA/SNYK/CVE identities. The current JSON schema checks alias string types; this report concerns known-ID interoperability rather than claiming that JSON-schema validation rejects those strings.

Could you confirm the intended representation and correct the affected export/source/alias derivation, or point to the upstream owners? The captured bytes have not been trimmed or rewritten. PyPI/Packagist were inspected from complete downloaded ZIPs; the npm member was obtained through bounded range reads tied to one ETag/generation. This is not a claim to have qualified the complete npm export.

Activity

  1. G-Rath commented on Nov 17, 2026

    @G-Rath
    Collaborator

    GHSA-jf66-3q76-h5p5: I believe this is because of a trailing comma in the upstream's references (which it looks like @jess-lowe has already had to deal with in the past 😅)

    GHSA-5xf4-f2fq-f69j: I believe this is because of a trailing comma in the GHSA's references

    DRUPAL-CONTRIB-2026-040: that looks to be a formatting issue in the upstream CNA, which comes through into our advisory - @greggles could you update the field_sa_cve field for that advisory?

  2. greggles commented on Nov 17, 2026

    @greggles

    @G-Rath should be fixed. Sorry about that.

    curl -s https://www.drupal.org/api-d7/node.json?type=sa&sort=changed&direction=DESC&field_is_psa=0&nid=3593096 | jq '.list[].field_sa_cve'
    [
      "CVE-2026-49977"
    ]
    
  3. jess-lowe commented on Nov 19, 2026

    @jess-lowe
    Contributor

    I've added stricter ID charset linting on aliases/upstream/related in a PR in osv-schema. That should mean these sorts of issues should be flagged on test.osv.dev/linter, and we can contact the upstream data sources on the issues. Thanks for the report, and indirectly influencing this change!

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