MediumGHSA-3fvf-2gp4-89wq

Possibility for Denial of Service by overwriting PHP files with language exports

Published 18 Mar 2022 · Updated 5 Dec 2024

Is your project on an affected barryvdh/laravel-translation-manager?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<0.6.2
Fixed in
0.6.2
Update to the fixed version for your release line, for example:composer require barryvdh/laravel-translation-manager:^0.6.2

Details

Impact

Laravel Translation Manager didn't check the locale name, which allowed directory traversal when exporting files. The content would be a PHP file returning an array of translations, but this could lead to unexpected results, like denial of service. Access to the Laravel Translation Manager is required, because a new locale would have to be added and published.

Patches

Version 0.6.2 fixes this issue.

Workarounds

Only allow trusted admins to publish/edit translations.

References

https://github.com/barryvdh/laravel-translation-manager/pull/417

For more information

If you have any questions or comments about this advisory:

  • Open an issue in https://github.com/barryvdh/laravel-translation-manager
  • Email me (see Github profile)

Credits

Found and reported by Natalia Trojanowska

Is GHSA-3fvf-2gp4-89wq in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected barryvdh/laravel-translation-manager, and gives you the command that fixes it.

More advisories for barryvdh/laravel-translation-manager

  • MediumCVE-2025-49130Laravel Translation Manager Vulnerable to Stored Cross-site Scripting · 9 Jun 2025
barryvdh/laravel-translation-manager security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.