Skip to content

[5.x]: Could not update from Craft 4 to Craft 5 because of Twig package security issues #18926

@grasmachien

Description

@grasmachien

What happened?

Description

Problem 1
- Root composer.json requires craftcms/cms 5.10.1 -> satisfiable by craftcms/cms[5.10.1].
- craftcms/cms 5.10.1 requires twig/twig ~3.24.0 -> found twig/twig[v3.24.0] but these were not loaded, because they are affected by security advisories ("PKSA-5k7f-wvjj-jrgw", "PKSA-sjvz-tbbr-vwth", "PKSA-h8hf-ytnd-5t9q", "PKSA-wwb1-81rc-pd65", "PKSA-hgmw-wn4d-hpcy", "PKSA-kvv6-36cr-fkzb", "PKSA-n14z-jjjg-g8vd", "PKSA-3mcc-k66d-pydb", "PKSA-gw7n-z4yx-7xjt", "PKSA-dpx1-78wg-1kqs", "PKSA-21g2-dzjv-sky5"). Go to https://packagist.org/security-advisories/ to find advisory details. To ignore the advisories, add them to the audit "ignore" config. To turn the feature off entirely, you can set "block-insecure" to false in your "audit" config.

I managed to work around it by adding "block-insecure": false to my composer.json.

Craft CMS version

4 -> 5

PHP version

8.4

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions