Skip to content

chore(deps): update dependency sentencepiece to v0.2.1 [security]#14273

Open
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/pypi-sentencepiece-vulnerability
Open

chore(deps): update dependency sentencepiece to v0.2.1 [security]#14273
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/pypi-sentencepiece-vulnerability

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
sentencepiece ==0.2.0==0.2.1 age confidence

Sentencepiece has a a heap overflow issue

CVE-2026-1260 / GHSA-38vq-g6vr-w8wf

More information

Details

Invalid memory access in Sentencepiece versions less than 0.2.1 when using a vulnerable model file, which is not created in the normal training procedure.

Severity

  • CVSS Score: 8.5 / 10 (High)
  • Vector String: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

google/sentencepiece (sentencepiece)

v0.2.1

Compare Source

Major changes

New features

  • [ALL]: Added new build mode to prevent the precompiled normalization rules being embedded in *.so and *.a. (-DSPM_DISABLE_EMBEDDED_DATA=ON). This reduces the runtime size by approximately 1-2 MB. This mode is enabled to build python wheels. The rules are loaded as the data package.

Bug fixes & minor changes

  • [ALL]: Security fix to address a heap overflow issue that could occur when using a model containing an invalid precompiled normalization model.
  • [Python]: Deprecates the wheel package for Linux i686.
  • [Python]: Supported wheel for Windows Arm64. #​1114
  • [Python]: Fixed the crash issue on batch decoding #​1051
  • [ALL]: Updated the Unicode normalization rule with the latest ICU/Unicode rules.
  • [ALL]: Unused code and build mode cleanup.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners June 3, 2026 22:38
@trusted-contributions-gcf trusted-contributions-gcf Bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jun 3, 2026
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Jun 3, 2026
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 3, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the sentencepiece dependency from version 0.2.0 to 0.2.1 across multiple requirements.txt files in the generative_ai directory. The reviewer notes that if support for older Python versions is being dropped, legacy version-specific dependency pins for packages like pandas and pillow should be removed to maintain consistency.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.84.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

If you are dropping support for older Python versions (such as Python 3.7 and 3.8), please ensure that all legacy, version-specific dependency pins (like those for pandas and pillow) are removed from the requirements file to maintain consistency, rather than adding new version-specific markers for sentencepiece.

References
  1. When dropping support for older Python versions, ensure that all legacy, version-specific dependency pins are removed from the requirements file to maintain consistency.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

If you are dropping support for older Python versions (such as Python 3.7 and 3.8), please ensure that all legacy, version-specific dependency pins (like those for pandas and pillow) are removed from the requirements file to maintain consistency, rather than adding new version-specific markers for sentencepiece.

References
  1. When dropping support for older Python versions, ensure that all legacy, version-specific dependency pins are removed from the requirements file to maintain consistency.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

If you are dropping support for older Python versions (such as Python 3.7 and 3.8), please ensure that all legacy, version-specific dependency pins (like those for pandas and pillow) are removed from the requirements file to maintain consistency, rather than adding new version-specific markers for sentencepiece.

References
  1. When dropping support for older Python versions, ensure that all legacy, version-specific dependency pins are removed from the requirements file to maintain consistency.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

If you are dropping support for older Python versions (such as Python 3.7 and 3.8), please ensure that all legacy, version-specific dependency pins (like those for pandas and pillow) are removed from the requirements file to maintain consistency, rather than adding new version-specific markers for sentencepiece.

References
  1. When dropping support for older Python versions, ensure that all legacy, version-specific dependency pins are removed from the requirements file to maintain consistency.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

If you are dropping support for older Python versions (such as Python 3.7 and 3.8), please ensure that all legacy, version-specific dependency pins (like those for pandas and pillow) are removed from the requirements file to maintain consistency, rather than adding new version-specific markers for sentencepiece.

References
  1. When dropping support for older Python versions, ensure that all legacy, version-specific dependency pins are removed from the requirements file to maintain consistency.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

If you are dropping support for older Python versions (such as Python 3.7 and 3.8), please ensure that all legacy, version-specific dependency pins (like those for pandas and pillow) are removed from the requirements file to maintain consistency, rather than adding new version-specific markers for sentencepiece.

References
  1. When dropping support for older Python versions, ensure that all legacy, version-specific dependency pins are removed from the requirements file to maintain consistency.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.74.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

If you are dropping support for older Python versions (such as Python 3.7 and 3.8), please ensure that all legacy, version-specific dependency pins (like those for pandas and pillow) are removed from the requirements file to maintain consistency, rather than adding new version-specific markers for sentencepiece.

References
  1. When dropping support for older Python versions, ensure that all legacy, version-specific dependency pins are removed from the requirements file to maintain consistency.

pillow==10.4.0; python_version >= '3.8'
google-cloud-aiplatform[all]==1.69.0
sentencepiece==0.2.0
sentencepiece==0.2.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

If you are dropping support for older Python versions (such as Python 3.7 and 3.8), please ensure that all legacy, version-specific dependency pins (like those for pandas and pillow) are removed from the requirements file to maintain consistency, rather than adding new version-specific markers for sentencepiece.

References
  1. When dropping support for older Python versions, ensure that all legacy, version-specific dependency pins are removed from the requirements file to maintain consistency.

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

Labels

owlbot:run Add this label to trigger the Owlbot post processor. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants