Skip to content

Commit 74b4487

Browse files
committed
Document dangers of enabling an unsafe php.ini setting
1 parent 84b1ca4 commit 74b4487

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/2.x/extensions/front-matter.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ composer require league/commonmark
2828

2929
See the [installation](/2.x/installation/) section for more details.
3030

31-
You will also need to install `symfony/yaml` or the [YAML extension for PHP](https://www.php.net/manual/book.yaml.php) to use this extension. For `symfony/yaml`:
31+
You will also need to install `symfony/yaml` (2.6 or higher) or the [YAML extension for PHP](https://www.php.net/manual/book.yaml.php) to use this extension. For `symfony/yaml`:
3232

3333
```bash
3434
composer require symfony/yaml
3535
```
3636

37-
(You can use any version of `symfony/yaml` 2.6 or higher, though we recommend using 4.0 or higher.)
37+
If both are installed, the PHP YAML extension will be used by default.
38+
39+
**Warning:** When using the PHP YAML extension, avoid setting `yaml.decode_php=1` in your `php.ini` file as this enables deserialization of arbitrary classes, which can lead to security vulnerabilities!
3840

3941
## Front Matter Syntax
4042

0 commit comments

Comments
 (0)