Problem/Motivation

Twig has released some more CVEs.

Steps to reproduce

composer audit

Proposed resolution

We should update those in the lockfiles/core-recommended prior to further security releases on all supported branches.

Remaining tasks

MRs forthcoming.

API changes

Data model changes

Release notes snippet

Needed.

Issue fork drupal-3641267

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

xjm created an issue. See original summary.

xjm’s picture

Status: Active » Needs review
xjm’s picture

The fail on main and 12.0.x is:

 
    CKEditor5Dialog (Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5Dialog)
     ✔ C k editor 5 focus in tooltips in dialog
     ✘ Balloon visible in dialog opened after editor
       ┐
       ├ Failed asserting that two strings are identical.
       ┊ ---·Expected
       ┊ +++·Actual
       ┊ @@ @@
       ┊ -'balloon'
       ┊ +'ck·ck-content·ck-editor__editable·ck-rounded-corners·ck-editor__editable_root·ck-editor__editable_inline·ck-focused'
       │
       │ /builds/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5DialogTest.php:102
       ┴
     ✔ Open dialog settings
    
    FAILURES!
    Tests: 3, Assertions: 34, Failures: 1.

It appears to be persistent.

xjm’s picture

Looks like #3328425: CKEditor 5 balloons invisible when CKEditor 5 is used inside a modal just got reverted so I'll try updating the issue fork. Edit: Except it has not actually been reverted.

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Looks correct to me, the test failures are for the unrelated issue above and will go away once that is reverted or fixed.

Because of lockfile changes we will need this for all supported branches.

longwave’s picture

Title: Update Twig for Nov. 24 release » Update Twig to v3.31.1

godotislate made their first commit to this issue’s fork.

godotislate’s picture

  • catch committed 4af2fc84 on 12.0.x
    task: #3641267 Update Twig to v3.31.1
    
    By: xjm
    By: godotislate
    By:...

  • catch committed 1dec2b8c on main
    task: #3641267 Update Twig to v3.31.1
    
    By: xjm
    By: godotislate
    By:...
catch’s picture

Version: main » 11.5.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Committed/pushed to main, 12.0.x, and 11.x

Moving to 11.5.x for further backports.

  • catch committed ba27796f on 11.x
    task: #3641267 Update Twig to v3.31.1
    
    By: xjm
    By: godotislate
    By:...

godotislate’s picture

Instead of
public function addPath(string $path, string $namespace = self::MAIN_NAMESPACE, bool $check = TRUE): void {,
should we match Twig and use
public function addPath(string $path, string $namespace = self::MAIN_NAMESPACE/* , bool $check = true */): void (and add to deprecation ignore as needed)?

This could be disruptive to any contrib or custom subclasses, especially for sites on the production branches.

xjm’s picture

@godotislate, yeah I was unsure about that also, which is why I stopped on 11.4.x for now. I think ignoring the deprecation on the production branches is probably the right way to go.

xjm’s picture

Version: 11.5.x-dev » 11.4.x-dev
Status: Patch (to be ported) » Needs work

I need to switch to a different context now but if someone wants to update this for #18 that would be good. (On the 11.4.x MR, that is; I think we should keep it on 11.5.x with the unsilenced deprecation and the new param.)

godotislate’s picture

Updated 11.4.x MR per #20. Do we need 11.3 and 10.6?

godotislate’s picture

Status: Needs work » Needs review

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Look like good backports.

godotislate’s picture

Opened MRs for 11.3 and 10.6 in case we need them.

  • catch committed a31a6a27 on 11.4.x
    task: #3641267 Update Twig to v3.31.1
    
    By: xjm
    By: godotislate
    By:...

  • catch committed 0ab2b986 on 11.5.x
    task: #3641267 Update Twig to v3.31.1
    
    By: xjm
    By: godotislate
    By:...

  • catch committed 2e3c03ff on 10.6.x
    task: #3641267 Update Twig to v3.31.1
    
    By: xjm
    By: godotislate
    By:...
catch’s picture

Committed/pushed the backports all the way back to 10.6 just so they're there, better to keep tests passing.

xjm’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

catch’s picture

Version: 11.4.x-dev » 10.6.x-dev

  • catch committed e6f1e0c7 on 11.3.x
    task: #3641267 Update Twig to v3.31.1
    
    By: xjm
    By: godotislate
    By:...