Loading HuntDB...

GHSA-3r8j-pmch-5j2h

GitHub Security Advisory

Internal exception message exposure for login action in Sylius

✓ GitHub Reviewed LOW Has CVE

Advisory Details

## Internal exception message exposure for login action

### Impact
Exception messages from internal exceptions (like database exception) are wrapped by `\Symfony\Component\Security\Core\Exception\AuthenticationServiceException` and propagated through the system to UI. Therefore, some internal system information may leak and be visible to the customer.

A validation message with the exception details will be presented to the user when one will try to log into the shop.

### Patches
_Has the problem been patched? What versions should users upgrade to?_

### Workarounds
The `src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig` file should be overridden and lines https://github.com/Sylius/Sylius/blob/1.4/src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig#L13-L17 should be replaced with
```twig
{% if last_error %}
<div class="ui left aligned basic segment">
{{ messages.error(last_error.messageKey) }}
</div>
{% endif %}
```

The `messageKey` field should be used instead of the `message`.

Affected Packages

Packagist sylius/sylius
Affected versions: 0 (fixed in 1.3.14)
Packagist sylius/sylius
Affected versions: 1.4.0 (fixed in 1.4.10)
Packagist sylius/sylius
Affected versions: 1.5.0 (fixed in 1.5.7)
Packagist sylius/sylius
Affected versions: 1.6.0 (fixed in 1.6.3)

Related CVEs

Key Information

GHSA ID
GHSA-3r8j-pmch-5j2h
Published
December 5, 2019 7:57 PM
Last Modified
January 8, 2021 9:20 PM
CVSS Score
2.5 /10
Primary Ecosystem
Packagist
Primary Package
sylius/sylius
GitHub Reviewed
✓ Yes

Dataset

Last updated: July 12, 2025 6:29 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.