Skip to content

chore(deps): update pollora/media requirement from ^0.8 || ^0.9 || ^0.10 to ^0.10.1 - #763

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/develop/pollora/media-tw-0.10.1
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/develop/pollora/media-tw-0.10.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on pollora/media to permit the latest version.

Release notes

Sourced from pollora/media's releases.

v0.10.1

A security release. Every version before it is affected: upgrade, then repair what is already on the disk. Read Changed first: some behaviour changes.

Security

Upgrading changes nothing on the disk by itself. Follow Repairing media left public in the README: make each private media private again, then purge the CDN.

Private media (since 0.3.0 unless said otherwise):

  • Anyone could read a private media attached to no post, and get its signed URL: over REST (GET /wp/v2/media/{id} and the collection), on its attachment page, in its embed and feed, and in the oEmbed answer
  • The feed of a private media was also printed to a request that runs without themes, such as a direct one to wp-blog-header.php
  • The same page, reached as a single post (?post_type=attachment&p=N, an attached media included) or with the posts page in the query, showed the private media; when WordPress has no attachment pages, it redirected to the signed URL of the file, and otherwise to its slug
  • Any signed-in user, a subscriber included, could get the signed URL of a private media by asking WordPress to preview a [gallery] shortcode (admin-ajax.php?action=parse-media-shortcode)
  • A private media that is not an image (PDF, archive, video, audio) was never made private on the disk, neither at upload nor by wp pollora media visibility --private, which reported a success with no file changed
  • The files written after a media was made private (an edit in the media library, sizes made later, the new media the block editor saves a crop or a rotation as) were left public. They are made private when the metadata is saved, and the copy made by the editor is private
  • The files WordPress keeps of an image before its edit, and its other companions (source_image, animated_video, animated_video_poster), did not follow the visibility of the media
  • The sizes of a private media made at upload, when its image is edited, when its focal point moves or by thumbs warm kept the default visibility of the disk (declared sizes, since 0.4.0)
  • The fallback route served the file of a declared size of a private media when that file existed, with a public cache of one year, and made or served sizes of the original a private image had before its edit (since 0.5.0)
  • While the server is saturated, the fallback route could answer with a size of another media whose name starts like the one asked for, or that has the same name with another extension, private or not (since 0.5.0)

Networks:

  • On a site other than the main one, no file of a private media was made private, and the files of the main site with the same names were changed instead
  • Deleting a site whose uploads are the root of the library (a network created before WordPress 3.5, uploads moved out of sites/N) deleted every file of the library (since 0.1.0)
  • On a site other than the main one, the declared sizes used the paths of the main site: deleting a media could delete the main site's files (since 0.4.0), thumbs prune run there could delete them too (since 0.4.0), and the fallback route could serve a private size of the main site (since 0.5.0)

Stream wrapper:

  • rmdir('pollora://.') (since 0.1.0), pollora://uploads/. and spellings with a backslash (since 0.2.0) deleted the whole media library, because the disk reads them as its root after the wrapper had taken them for a folder. . segments and backslashes are now resolved by the wrapper first

Changed

Behaviour changes to check before upgrading:

  • WordPress 6.2 or later is required: the database queries use the %i placeholder
  • REST: for a user without upload_files who cannot edit it, a private media answers 401 or 403 on /wp/v2/media/{id}, and is left out of the collection and of _embed. A headless front-end that reads private media anonymously, or a custom role that relied on it, has to authenticate or be given the capability
  • Attachment page and oEmbed: for the same users, the attachment page of a private media, its embed and its feed are not found, and oEmbed answers 404. A plugin that gates a download through that page has to give its users edit_post on the media, or serve it elsewhere
  • Shortcode preview: parse-media-shortcode is refused to a user without upload_files who names no post they can edit
  • Networks: a site other than the main one gets no declared size, including the images uploaded before: WordPress serves its own sizes, and the original under a declared name it has no size for. The declared size recorded in the metadata of such an image is no longer read
  • Networks: on a site other than the main one, the fallback route serves nothing, and wp pollora media thumbs prune refuses to run
  • Networks: when the uploads of a deleted site are the whole library, its files stay on the disk
  • Fallback route: a size whose original is no longer on the disk is a 404, even when its file exists. The route asks the database and the disk for a size already made, where it only asked the disk
  • Larger file list: the files of a media now include the file of a media that is not an image, the attached file when it differs from the one of the metadata, the companions WordPress records and the files kept from before an edit. Making a media private or public changes them all, wp pollora media files lists them, and the $paths of the pollora/media/deleted action (and the MediaDeleted event of an application that relays it) holds them
  • wp pollora media visibility can report new failures: a file WordPress still records for a media but that is no longer on the disk, such as one kept from before an edit, is reported as not changed, and the command then exits with 1. A script that stops on a failure has to expect it
  • Saving the metadata of a private media sets the visibility of each of its files, one call to the disk per file
  • PHPStan runs at level 10. A value without a type from WordPress, WP-CLI, a filter or a constant that is neither a scalar nor stringable now reads as '' or 0
  • UrlReplacement and the private media lookup pass table and column names to $wpdb->prepare() as %i identifiers

Fixed

... (truncated)

Changelog

Sourced from pollora/media's changelog.

[0.10.1] - 2026-12-02

A security release. Every version before it is affected: upgrade, then repair what is already on the disk. Read Changed first: some behaviour changes.

Security

Upgrading changes nothing on the disk by itself. Follow Repairing media left public in the README: make each private media private again, then purge the CDN.

Private media (since 0.3.0 unless said otherwise):

  • Anyone could read a private media attached to no post, and get its signed URL: over REST (GET /wp/v2/media/{id} and the collection), on its attachment page, in its embed and feed, and in the oEmbed answer
  • The feed of a private media was also printed to a request that runs without themes, such as a direct one to wp-blog-header.php
  • The same page, reached as a single post (?post_type=attachment&p=N, an attached media included) or with the posts page in the query, showed the private media; when WordPress has no attachment pages, it redirected to the signed URL of the file, and otherwise to its slug
  • Any signed-in user, a subscriber included, could get the signed URL of a private media by asking WordPress to preview a [gallery] shortcode (admin-ajax.php?action=parse-media-shortcode)
  • A private media that is not an image (PDF, archive, video, audio) was never made private on the disk, neither at upload nor by wp pollora media visibility --private, which reported a success with no file changed
  • The files written after a media was made private (an edit in the media library, sizes made later, the new media the block editor saves a crop or a rotation as) were left public. They are made private when the metadata is saved, and the copy made by the editor is private
  • The files WordPress keeps of an image before its edit, and its other companions (source_image, animated_video, animated_video_poster), did not follow the visibility of the media
  • The sizes of a private media made at upload, when its image is edited, when its focal point moves or by thumbs warm kept the default visibility of the disk (declared sizes, since 0.4.0)
  • The fallback route served the file of a declared size of a private media when that file existed, with a public cache of one year, and made or served sizes of the original a private image had before its edit (since 0.5.0)
  • While the server is saturated, the fallback route could answer with a size of another media whose name starts like the one asked for, or that has the same name with another extension, private or not (since 0.5.0)

Networks:

  • On a site other than the main one, no file of a private media was made private, and the files of the main site with the same names were changed instead
  • Deleting a site whose uploads are the root of the library (a network created before WordPress 3.5, uploads moved out of sites/N) deleted every file of the library (since 0.1.0)
  • On a site other than the main one, the declared sizes used the paths of the main site: deleting a media could delete the main site's files (since 0.4.0), thumbs prune run there could delete them too (since 0.4.0), and the fallback route could serve a private size of the main site (since 0.5.0)

Stream wrapper:

  • rmdir('pollora://.') (since 0.1.0), pollora://uploads/. and spellings with a backslash (since 0.2.0) deleted the whole media library, because the disk reads them as its root after the wrapper had taken them for a folder. . segments and backslashes are now resolved by the wrapper first

Changed

Behaviour changes to check before upgrading:

  • WordPress 6.2 or later is required: the database queries use the %i placeholder
  • REST: for a user without upload_files who cannot edit it, a private media answers 401 or 403 on /wp/v2/media/{id}, and is left out of the collection and of _embed. A headless front-end that reads private media anonymously, or a custom role that relied on it, has to authenticate or be given the capability
  • Attachment page and oEmbed: for the same users, the attachment page of a private media, its embed and its feed are not found, and oEmbed answers 404. A plugin that gates a download through that page has to give its users edit_post on the media, or serve it elsewhere
  • Shortcode preview: parse-media-shortcode is refused to a user without upload_files who names no post they can edit
  • Networks: a site other than the main one gets no declared size, including the images uploaded before: WordPress serves its own sizes, and the original under a declared name it has no size for. The declared size recorded in the metadata of such an image is no longer read
  • Networks: on a site other than the main one, the fallback route serves nothing, and wp pollora media thumbs prune refuses to run
  • Networks: when the uploads of a deleted site are the whole library, its files stay on the disk
  • Fallback route: a size whose original is no longer on the disk is a 404, even when its file exists. The route asks the database and the disk for a size already made, where it only asked the disk
  • Larger file list: the files of a media now include the file of a media that is not an image, the attached file when it differs from the one of the metadata, the companions WordPress records and the files kept from before an edit. Making a media private or public changes them all, wp pollora media files lists them, and the $paths of the pollora/media/deleted action (and the MediaDeleted event of an application that relays it) holds them
  • wp pollora media visibility can report new failures: a file WordPress still records for a media but that is no longer on the disk, such as one kept from before an edit, is reported as not changed, and the command then exits with 1. A script that stops on a failure has to expect it
  • Saving the metadata of a private media sets the visibility of each of its files, one call to the disk per file
  • PHPStan runs at level 10. A value without a type from WordPress, WP-CLI, a filter or a constant that is neither a scalar nor stringable now reads as '' or 0
  • UrlReplacement and the private media lookup pass table and column names to $wpdb->prepare() as %i identifiers

Fixed

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [pollora/media](https://github.com/Pollora/media) to permit the latest version.
- [Release notes](https://github.com/Pollora/media/releases)
- [Changelog](https://github.com/Pollora/media/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Pollora/media/commits/v0.10.1)

---
updated-dependencies:
- dependency-name: pollora/media
  dependency-version: 0.10.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Dec 5, 2026
@dependabot @github

dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: automerge. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

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

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants