Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for authentication. Starting in version 2.5.0 and prior to versions 3.5.8, 4.0.4, and 4.1.2, the LDAP query made during login is insecure and the attacker can perform LDAP injection attack to leak arbitrary attributes from LDAP database. This issue is fixed in versions 3.5.8, 4.0.4, and 4.1.2.
https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv
https://github.com/mastodon/mastodon/releases/tag/v4.1.2
https://github.com/mastodon/mastodon/releases/tag/v4.0.4
https://github.com/mastodon/mastodon/releases/tag/v3.5.8