WebWork is released as Open Source software under the Apache Software License. The terms of the license can be found in the file license.txt.
Essentially the license gives you right to do pretty much whatever you want with WebWork and the source code, including creating extensions and packaging it with commercial software. You may want to visit the site http://www.opensource.org for more information regarding Open Source software in general.