Skip to content

[Snyk] Upgrade openai from 3.3.0 to 4.95.1 #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented May 13, 2025

snyk-top-banner

Snyk has created this PR to upgrade openai from 3.3.0 to 4.95.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 233 versions ahead of your current version.

  • The recommended version was released 24 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Cross-site Request Forgery (CSRF)
SNYK-JS-AXIOS-6032459
155 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-AXIOS-6124857
155 Proof of Concept
medium severity Server-side Request Forgery (SSRF)
SNYK-JS-AXIOS-9292519
155 Proof of Concept
medium severity Server-side Request Forgery (SSRF)
SNYK-JS-AXIOS-9403194
155 No Known Exploit
Release notes
Package name: openai
  • 4.95.1 - 2025-04-18

    4.95.1 (2025-04-18)

    Full Changelog: v4.95.0...v4.95.1

    Bug Fixes

  • 4.95.0 - 2025-04-16

    4.95.0 (2025-04-16)

    Full Changelog: v4.94.0...v4.95.0

    Features

    • api: add o3 and o4-mini model IDs (4845cd9)
  • 4.94.0 - 2025-04-14

    4.94.0 (2025-04-14)

    Full Changelog: v4.93.0...v4.94.0

    Features

    • api: adding gpt-4.1 family of model IDs (bddcbcf)
    • api: manual updates (7532f48)

    Chores

    • client: minor internal fixes (d342f17)
    • internal: reduce CI branch coverage (a49b94a)
    • internal: upload builds and expand CI branch coverage (#1460) (7e23bb4)
    • workaround build errors (913eba8)
  • 4.93.0 - 2025-04-08

    4.93.0 (2025-04-08)

    Full Changelog: v4.92.1...v4.93.0

    Features

    Chores

  • 4.92.1 - 2025-04-07

    4.92.1 (2025-04-07)

    Full Changelog: v4.92.0...v4.92.1

    Chores

    • internal: only run examples workflow in main repo (#1450) (5e49a7a)
  • 4.92.0 - 2025-04-07

    4.92.0 (2025-04-07)

    Full Changelog: v4.91.1...v4.92.0

    Features

    Bug Fixes

    • api: improve type resolution when importing as a package (#1444) (4aa46d6)
    • client: send X-Stainless-Timeout in seconds (#1442) (aa4206c)
    • embeddings: correctly decode base64 data (#1448) (58128f7)
    • mcp: remove unused tools.ts (#1445) (520a8fa)

    Chores

    • internal: add aliases for Record and Array (#1443) (b65391b)
  • 4.91.1 - 2025-04-01

    4.91.1 (2025-04-01)

    Full Changelog: v4.91.0...v4.91.1

    Bug Fixes

    • docs: correct docstring on responses.stream (1c8cd6a)

    Chores

    • Remove deprecated/unused remote spec feature (ce3dfa8)
  • 4.91.0 - 2025-03-31

    4.91.0 (2025-03-31)

    Full Changelog: v4.90.0...v4.91.0

    Features

    • api: add get /responses/{response_id}/input_items endpoint (ef0e0ac)

    Performance Improvements

  • 4.90.0 - 2025-03-27

    4.90.0 (2025-03-27)

    Full Changelog: v4.89.1...v4.90.0

    Features

    • api: add get /chat/completions endpoint (2d6710a)

    Bug Fixes

    Chores

    • add hash of OpenAPI spec/config inputs to .stats.yml (45db35e)
    • api: updates to supported Voice IDs (#1424) (404f4db)
    • client: expose headers on some streaming errors (#1423) (b0783cc)
  • 4.89.1 - 2025-03-26

    4.89.1 (2025-03-26)

    Full Changelog: v4.89.0...v4.89.1

    Bug Fixes

    Chores

  • 4.89.0 - 2025-03-20
  • 4.88.0 - 2025-03-19
  • 4.87.4 - 2025-03-18
  • 4.87.3 - 2025-03-11
  • 4.87.2 - 2025-03-11
  • 4.87.1 - 2025-03-11
  • 4.87.0 - 2025-03-11
  • 4.86.2 - 2025-03-05
  • 4.86.1 - 2025-02-27
  • 4.86.0 - 2025-02-27
  • 4.85.4 - 2025-02-22
  • 4.85.3 - 2025-02-20
  • 4.85.2 - 2025-02-18
  • 4.85.1 - 2025-02-14
  • 4.85.0 - 2025-02-13
  • 4.84.1 - 2025-02-13
  • 4.84.0 - 2025-02-12
  • 4.83.0 - 2025-02-05
  • 4.82.0 - 2025-01-31
  • 4.81.0 - 2025-01-29
  • 4.80.1 - 2025-01-24
  • 4.80.0 - 2025-01-22
  • 4.79.4 - 2025-01-21
  • 4.79.3 - 2025-01-21
  • 4.79.2 - 2025-01-21
  • 4.79.1 - 2025-01-17
  • 4.79.0 - 2025-01-17
  • 4.78.1 - 2025-01-10
  • 4.78.0 - 2025-01-09
  • 4.77.4 - 2025-01-08
  • 4.77.3 - 2025-01-03
  • 4.77.0 - 2024-12-17
  • 4.76.3 - 2024-12-13
  • 4.76.2 - 2024-12-12
  • 4.76.1 - 2024-12-10
  • 4.76.0 - 2024-12-05
  • 4.75.0 - 2024-12-03
  • 4.74.0 - 2024-12-02
  • 4.73.1 - 2024-11-25
  • 4.73.0 - 2024-11-20
  • 4.72.0 - 2024-11-12
  • 4.71.1 - 2024-11-06
  • 4.71.0 - 2024-11-04
  • 4.70.3 - 2024-11-04
  • 4.70.2 - 2024-11-01
  • 4.70.1 - 2024-11-01
  • 4.70.0 - 2024-11-01
  • 4.69.0 - 2024-10-30
  • 4.68.4 - 2024-10-23
  • 4.68.3 - 2024-10-23
  • 4.68.2 - 2024-10-22
  • 4.68.1 - 2024-10-18
  • 4.68.0 - 2024-10-17
  • 4.67.3 - 2024-10-08
  • 4.67.2 - 2024-10-07
  • 4.67.1 - 2024-10-02
  • 4.67.0 - 2024-10-01
  • 4.66.1 - 2024-09-30
  • 4.65.0 - 2024-09-26
  • 4.64.0 - 2024-09-25
  • 4.63.0 - 2024-09-20
  • 4.62.1 - 2024-09-18
  • 4.62.0 - 2024-09-17
  • 4.61.1 - 2024-09-16
  • 4.61.0 - 2024-09-13
  • 4.60.1 - 2024-09-13
  • 4.60.0 - 2024-09-12
  • 4.59.0 - 2024-09-11
  • 4.58.2 - 2024-09-09
  • 4.58.1 - 2024-09-06
  • 4.58.0 - 2024-09-05
  • 4.57.3 - 2024-09-04
  • 4.57.2 - 2024-09-04
  • 4.57.1 - 2024-09-03
  • 4.57.0 - 2024-08-29
  • 4.56.2 - 2024-08-29
  • 4.56.1 - 2024-08-27
  • 4.56.0 - 2024-08-16
  • 4.55.9 - 2024-08-16
  • 4.55.8 - 2024-08-15
  • 4.55.7 - 2024-08-13
  • 4.55.6 - 2024-08-13
  • 4.55.5 - 2024-08-12
  • 4.55.4 - 2024-08-09
  • 4.55.3 - 2024-08-08
  • 4.55.2 - 2024-08-08
  • 4.55.1 - 2024-08-07
  • 4.55.0 - 2024-08-06
  • 4.54.0 - 2024-08-02
  • 4.53.2 - 2024-07-26
  • 4.53.1 - 2024-07-25
  • 4.53.0 - 2024-07-22
  • 4.52.7 - 2024-07-11
  • 4.52.6 - 2024-07-11
  • 4.52.5 - 2024-07-10
  • 4.52.4 - 2024-07-08
  • 4.52.3 - 2024-07-02
  • 4.52.2 - 2024-06-29
  • 4.52.1 - 2024-06-26
  • 4.52.0 - 2024-06-19
  • 4.51.0 - 2024-06-12
  • 4.50.0 - 2024-06-10
  • 4.49.1 - 2024-06-07
  • 4.49.0 - 2024-06-06
  • 4.48.3 - 2024-06-06
  • 4.48.2 - 2024-06-05
  • 4.48.1 - 2024-06-04
  • 4.47.3 - 2024-05-31
  • 4.47.2 - 2024-05-28
  • 4.47.1 - 2024-05-14
  • 4.47.0 - 2024-05-14
  • 4.46.1 - 2024-05-13
  • 4.46.0 - 2024-05-13
  • 4.45.0 - 2024-05-11
  • 4.44.0 - 2024-05-09
  • 4.43.0 - 2024-05-08
  • 4.42.0 - 2024-05-06
  • 4.41.1 - 2024-05-06
  • 4.41.0 - 2024-05-05
  • 4.40.2 - 2024-05-03
  • 4.40.1 - 2024-05-02
  • 4.40.0 - 2024-05-01
  • 4.39.1 - 2024-04-30
  • 4.39.0 - 2024-04-29
  • 4.38.5 - 2024-04-25
  • 4.38.4 - 2024-04-24
  • 4.38.3 - 2024-04-22
  • 4.38.2 - 2024-04-19
  • 4.38.1 - 2024-04-18
  • 4.38.0 - 2024-04-18
  • 4.37.1 - 2024-04-17
  • 4.37.0 - 2024-04-17
  • 4.36.0 - 2024-04-16
  • 4.35.0 - 2024-04-16
  • 4.34.0 - 2024-04-15
  • 4.33.1 - 2024-04-13
  • 4.33.0 - 2024-04-05
  • 4.32.2 - 2024-04-04
  • 4.32.1 - 2024-04-02
  • 4.32.0 - 2024-04-01
  • 4.31.0 - 2024-03-30
  • 4.30.0 - 2024-03-28
  • 4.29.2 - 2024-03-19
  • 4.29.1 - 2024-03-15
  • 4.29.0 - 2024-03-13
  • 4.28.5 - 2024-03-13
  • 4.28.4 - 2024-02-28
  • 4.28.0 - 2024-02-13
  • 4.27.1 - 2024-02-12
  • 4.27.0 - 2024-02-09
  • 4.26.1 - 2024-02-05
  • 4.26.0 - 2024-01-25
  • 4.25.0 - 2024-01-21
  • 4.24.7 - 2024-01-13
  • 4.24.6 - 2024-01-12
  • 4.24.5 - 2024-01-12
  • 4.24.4 - 2024-01-12
  • 4.24.3 - 2024-01-10
  • 4.24.2 - 2024-01-09
  • 4.24.1 - 2023-12-22
  • 4.24.0 - 2023-12-19
  • 4.23.0 - 2023-12-17
  • 4.22.1 - 2023-12-16
  • 4.22.0 - 2023-12-15
  • 4.21.0 - 2023-12-13
  • 4.20.1 - 2023-11-27
  • 4.20.0 - 2023-11-22
  • 4.19.1 - 2023-11-20
  • 4.19.0 - 2023-11-15
  • 4.18.0 - 2023-11-14
  • 4.17.5 - 2023-11-13
  • 4.17.4 - 2023-11-10
  • 4.17.3 - 2023-11-10
  • 4.17.2 - 2023-11-09
  • 4.17.1 - 2023-11-09
  • 4.17.0 - 2023-11-09
  • 4.16.2 - 2023-11-08
  • 4.16.1 - 2023-11-06
  • 4.16.0 - 2023-11-06
  • 4.15.4 - 2023-11-05
  • 4.15.3 - 2023-11-05
  • 4.15.2 - 2023-11-04
  • 4.15.1 - 2023-11-04
  • 4.15.0 - 2023-11-03
  • 4.14.2 - 2023-10-30
  • 4.14.1 - 2023-10-27
  • 4.14.0 - 2023-10-25
  • 4.13.0 - 2023-10-23
  • 4.12.4 - 2023-10-17
  • 4.12.3 - 2023-10-16
  • 4.12.2 - 2023-10-16
  • 4.12.1 - 2023-10-11
  • 4.12.0 - 2023-10-11
  • 4.11.1 - 2023-10-03
  • 4.11.0 - 2023-09-29
  • 4.10.0 - 2023-09-21
  • 4.9.1 - 2023-09-21
  • 4.9.0 - 2023-09-21
  • 4.8.0 - 2023-09-18
  • 4.7.1 - 2023-09-15
  • 4.7.0 - 2023-09-14
  • 4.6.0 - 2023-09-08
  • 4.5.0 - 2023-09-06
  • 4.4.0 - 2023-09-01
  • 4.3.1 - 2023-08-29
  • 4.3.0 - 2023-08-27
  • 4.2.0 - 2023-08-23
  • 4.1.0 - 2023-08-22
  • 4.0.1 - 2023-08-19
  • 4.0.0 - 2023-08-16
  • 4.0.0-beta.12 - 2023-08-15
  • 4.0.0-beta.11 - 2023-08-13
  • 4.0.0-beta.10 - 2023-08-12
  • 4.0.0-beta.9 - 2023-08-11
  • 4.0.0-beta.8 - 2023-08-05
  • 4.0.0-beta.7 - 2023-07-29
  • 4.0.0-beta.6 - 2023-07-20
  • 4.0.0-beta.5 - 2023-07-17
  • 4.0.0-beta.4 - 2023-07-09
  • 4.0.0-beta.3 - 2023-07-08
  • 4.0.0-beta.2 - 2023-07-01
  • 4.0.0-beta.1 - 2023-06-27
  • 4.0.0-beta.0 - 2023-06-17
  • 3.3.0 - 2023-06-13
from openai GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Upgrade the OpenAI client dependency to version 4.95.1

New Features:

  • Support new model IDs and API endpoints introduced in OpenAI SDK v4.x series

Bug Fixes:

  • Resolve high and medium severity CSRF, ReDoS, and SSRF vulnerabilities in underlying dependencies

Enhancements:

  • Incorporate various downstream bug fixes and internal improvements from OpenAI SDK releases up to v4.95.1

Snyk has created this PR to upgrade openai from 3.3.0 to 4.95.1.

See this package in npm:
openai

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/1b9e8975-d6d0-4375-9da3-0aa27511634d?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented May 13, 2025

Reviewer's Guide

This PR implements a major upgrade of the OpenAI client library from v3.3.0 to v4.95.1 by updating the version spec in package.json and regenerating the lock file to pull in the new release and its transitive changes.

File-Level Changes

Change Details Files
Upgrade OpenAI dependency to v4.95.1
  • Bump openai version specifier in package.json from ^3.1.0 to ^4.95.1
  • Regenerate package lock file to reflect the new dependency tree
clients/js/examples/node/package.json
package-lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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.

2 participants