Skip to content

Upgrade @redocly/openapi-core from 1.x to 2.x to resolve minimatch vulnerability (GHSA-3ppc-4f35-3m26) #2644

Description

@asselkadyrkul

Description

Summary

openapi-typescript v7.x depends on @redocly/openapi-core@^1.x, which includes minimatch as a dependency. minimatch versions below 10.2.1 are vulnerable to a ReDoS attack (GHSA-3ppc-4f35-3m26).

@redocly/openapi-core@2.x has dropped minimatch entirely, which would resolve this vulnerability.

Current behaviour

  openapi-typescript@7.x
    └── @redocly/openapi-core@^1.x
          └── minimatch (vulnerable < 10.2.1)

Expected behaviour

  openapi-typescript@8.x
    └── @redocly/openapi-core@^2.x  ← no minimatch dependency

References

Proposal

Upgrade the @redocly/openapi-core dependency from ^1.x to ^2.x in a new major version of openapi-typescript (v8). This would eliminate the minimatch transitive dependency entirely, resolving the
security advisory.

If there are breaking API changes between @redocly/openapi-core 1.x and 2.x that affect openapi-typescript internals, we'd be happy to help test or contribute to the migration if needed.

Extra

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

    enhancementNew feature or requestopenapi-tsRelevant to the openapi-typescript library

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions