{"id":"GHSA-7fjp-g4m7-fx23","aliases":["GHSA-7fjp-g4m7-fx23"],"related":[],"kind":"vulnerability","state":"published","title":"User (Encrypted) Password Field Being Serialised","summary":"### Impact\nLeaking Password field during serialisation of the User model. Password is in the encrypted form but if User model is requested in json or array form the value is printed.\n\n### Patches\nIssue has been patched in version 0.3.7-beta and onwards.\n\n### Workarounds\nAdd the 'password' field to the Users model file in the hidden array:\n\n```php\n\n    /**\n     * The attributes that should be hidden for arrays.\n     *\n     * @var array\n     */\n    protected $hidden = [\n        'remember_token',\n        'password',\n    ];\n```\n\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [pwweb/laravel-core](https://github.com/pwweb/laravel-core)\n* Email us at [security@pw-websolutions.com](mailto:security@pw-websolutions.com)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\nLeaking Password field during serialisation of the User model. Password is in the encrypted form but if User model is requested in json or array form the value is printed.\n\n### Patches\nIssue has been patched in version 0.3.7-beta and onwards.\n\n### Workarounds\nAdd the 'password' field to the Users model file in the hidden array:\n\n```php\n\n    /**\n     * The attributes that should be hidden for arrays.\n     *\n     * @var array\n     */\n    protected $hidden = [\n        'remember_token',\n        'password',\n    ];\n```\n\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [pwweb/laravel-core](https://github.com/pwweb/laravel-core)\n* Email us at [security@pw-websolutions.com](mailto:security@pw-websolutions.com)","format":"markdown","source":"ghsa"}],"published":"2021-04-13T15:12:26.000Z","modified":"2024-12-02T05:50:00.799Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.3.7-beta"}],"ecosystem":"Packagist","package":"pwweb/laravel-core","purl":"pkg:composer/pwweb/laravel-core","source":"ghsa"}],"references":[{"url":"https://github.com/pwweb/laravel-core/security/advisories/GHSA-7fjp-g4m7-fx23","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7fjp-g4m7-fx23","url":"https://github.com/advisories/GHSA-7fjp-g4m7-fx23","licence":"CC-BY-4.0","modified":"2024-12-02T05:50:00.799Z"}],"updatedAt":"2026-11-25T22:56:31.463Z"}