What is a viral license in Software?

A viral license is a type of licensing scheme that requires code that uses or links to the license code, having the same license. It ensures that derivative works preserve the licensing scheme of the original versions of the work. It is common in open source and copyleft licenses, especially the GPL.