Is there an open source Bitcoin exchange?
Intersango is an open source exchange that is used at intersango.com, which is an exchange operated by The Bitcoin Consultancy. The open source project that can be found here is released under the GNU Affero General Public License. 

For more info on how to set it up, see this post on the bitcointalk forums: Intersango HOWTO - Build your own Bitcoin Exchange Web Site!