Index: src/wp-includes/media-template.php
===================================================================
--- src/wp-includes/media-template.php	(revision 32987)
+++ src/wp-includes/media-template.php	(revision )
@@ -1222,7 +1222,7 @@
 						</dt>
 						<# if ( attachment.caption ) { #>
 							<dd class="wp-caption-text gallery-caption">
-								{{ attachment.caption }}
+								{{{ attachment.caption }}}
 							</dd>
 						<# } #>
 					</dl>
