In the current tarball download of LTS version 1.27 [1] the composer.json lists library "ruflin/elastica" as a requirement. Therefore it is part of the vendor/ directory. I believe this is not needed, as the "ruflin/elastica" library is not required by MediaWiki core, but only by "Extension:CirrusSearch" (which again is not part of the tarball release). There might be other unnecessary requirements.
[1] https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.1.tar.gz