CGIHTTPServer executes cgi files inside a folder specified at init. Its function for deciding what's inside the folder (to be executed) and what's outside (to be returned raw) is completely bust. If you urlencode the slashes you will confuse it enough to yield false negative/positive.
This means that if you are using CGIHTTPServer, anyone can execute anything that the web server was supposed to print, or get the source of any cgi script.
You should probably not be using CGIHTTPServer anyway. </PSA>
After nearly a year of very little activity, Jython finally has a 2.7 beta 2 version released recently, with a 2.7b3 release coming soon.
So, if you use Jython and you are sick of dealing with <=2.5 code, you should be in luck real soon.
Edit: Found it here - https://news.ycombinator.com/item?id=7581434. Release will continue at least through 2015, support through 2020.
Edit: :) to indicate sarcasm.
--Many Releases Later--
Seriously guys we're gonna drop 2.