Mesa currently sets ctx->Version to the highest version the driver supports for the selected profile, which may be higher than the GL version requested in glXCreateContextAttribsARB. An example of a user bug due to this behavior: https://bugs.freedesktop.org/show_bug.cgi?id=95374. There should at least be some documentation about the current behavior in the gl_context struct.
As far as I know, that's how GL is expected to work. Other implementations do this as well. It's unlikely to change.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.