<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>308752</bug_id>
          
          <creation_ts>2026-02-26 07:26:09 -0800</creation_ts>
          <short_desc>blob: URLs are allowed in &lt;iframe&gt;s when CSP’s `frame-src` contains `‘self’`.</short_desc>
          <delta_ts>2026-03-19 09:46:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>WebKit Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>nikosfan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>bfulgham</cc>
    
    <cc>k_monsen</cc>
    
    <cc>roberto_rodriguez2</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2185245</commentid>
    <comment_count>0</comment_count>
      <attachid>478498</attachid>
    <who name="">nikosfan</who>
    <bug_when>2026-02-26 07:26:09 -0800</bug_when>
    <thetext>Created attachment 478498
Test for reproduction

Version: WebKitGTK MiniBrowser 2.50.4, 2.47.0

OS: Ubuntu 22.04.3 LTS

Description:
When `Content-Security-Policy: frame-src ‘self’` is set, an &lt;iframe&gt; whose `src` attribute is a blob: URL is allowed to load.

The attached test sets the response header `Content-Security-Policy: frame-src &apos;self&apos; ` and dynamically creates an &lt;iframe&gt; whose `src` attribute is set to a blob: URL. The embedded document prints the word “run” to the console when it is loaded.

Steps to Reproduce:
1) Serve the attached files from an HTTP web server with PHP enabled.
2) Visit self-enables-blob-frame-src.php.
3) Open the browser console and observe whether “run” is printed.

Observed Behavior:
The &lt;iframe&gt; is loaded and the console prints “run”.

Expected Behavior:
For &lt;iframe&gt; documents loaded from blob: URLs to be allowed, the blob: scheme should be explicitly listed in the `frame-src` directive.

Comparison with other Major Browsers:
Chrome, Opera, Brave, Edge, Firefox and Tor block the &lt;iframe&gt; and do not print “run”.

Important Notes:
- This behavior is observed only for the `frame-src` directive.
- This behavior is not observed in the `frame-src` directive’s fallbacks (`child-src` and `default-src`) and `object-src`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185246</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-26 07:26:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/171268629&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191151</commentid>
    <comment_count>2</comment_count>
    <who name="Kristian Monsen">k_monsen</who>
    <bug_when>2026-03-17 15:39:40 -0700</bug_when>
    <thetext>Minor spec compliance, and not a security issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191160</commentid>
    <comment_count>3</comment_count>
    <who name="">roberto_rodriguez2</who>
    <bug_when>2026-03-17 15:54:06 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/60814</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191750</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-03-19 09:46:55 -0700</bug_when>
    <thetext>Committed 309559@main (70534942aada): &lt;https://commits.webkit.org/309559@main&gt;

Reviewed commits have been landed. Closing PR #60814 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>478498</attachid>
            <date>2026-02-26 07:26:09 -0800</date>
            <delta_ts>2026-02-26 07:26:09 -0800</delta_ts>
            <desc>Test for reproduction</desc>
            <filename>self-enables-blob-frame-src.php</filename>
            <type>application/x-php</type>
            <size>513</size>
            <attacher>nikosfan</attacher>
            
              <data encoding="base64">PD9waHAKJGZwPSRfU0VSVkVSWydTRVJWRVJfTkFNRSddOwpoZWFkZXIoIkNvbnRlbnQtU2VjdXJp
dHktUG9saWN5OiBmcmFtZS1zcmMgJ3NlbGYnIiwgZmFsc2UpOwo/PgoKPGJvZHk+CiAgPHNjcmlw
dD4KICAgIGxldCBodG1sQ29udGVudCA9ICc8c2NyaXB0PmNvbnNvbGUubG9nKCJydW4iKTs8XC9z
Y3JpcHQ+JzsgLy8gaHRtbCBkb2N1bWVudCB3aWxsIHByaW50ICdydW4nIGlmIGxvYWRlZAogICAg
bGV0IGJsb2JfdXJsID0gVVJMLmNyZWF0ZU9iamVjdFVSTChuZXcgQmxvYihbaHRtbENvbnRlbnRd
LCB7IHR5cGU6ICd0ZXh0L2h0bWwnIH0pKTsgLy8gY3JlYXRpbmcgYSBibG9iOiB1cmwgd2l0aCB0
aGlzIGh0bWwKICAgIGxldCBpZnIgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdpZnJhbWUnKTsK
ICAgIGlmci5zcmMgPSBibG9iX3VybDsgLy8gc2V0IHRoZSBibG9iOiB1cmwgb24gdGhlIGlmcmFt
ZQogICAgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChpZnIpOwogIDwvc2NyaXB0Pgo8L2JvZHk+
</data>

          </attachment>
      

    </bug>

</bugzilla>