AdvancedCustomFields / AdvancedCustomFields/acf

<iframe> tag entered into the field instructions isn't escaped

Open
#355 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Bug:

  1. I created a Text Area field so editors can insert a video <iframe> from YouTube.
  2. When I added <iframe> to the instructions and saved the field? The entire editor gets thrown into the unclosed <iframe> tag.
  3. When I change <iframe> to &lt;iframe&gt; in the description, everything works fine.

Details:

  • WordPress 5.5
  • WooCommerce 4.3.2
  • ACF Pro 5.9-RC1
  • Chrome 86 (Developer Edition)

Screenshots:

screenshot

screenshot

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with a Text Area field whose instructions contain <iframe>, using the WordPress, WooCommerce, ACF, and Chrome versions listed. Trace how the field instructions are rendered in the editor. Done means the literal tag no longer breaks the editor, while normal instructions still display correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.