SERVER-135203ClosedFixed

System collection contents readable through a database change stream with showSystemEvents

$changeStream's private showSystemEvents option re-admits system.js into a database- or cluster-scoped stream without requiring any privilege on system.js. Since system.js stores server-side JavaScript that often embeds credentials, a role with only find+changeStream on a database or cluster could read it. Fix: filter events for changeStream on system.js when showSystemEvents is used on a database- or cluster-scoped stream. Built-in roles are unaffected. Other system collections (buc

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10258.3.169.0.78.0.377.0.48
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
auto-reverted