Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3328 vul audit #3390

Merged
merged 23 commits into from
Jan 17, 2025
Merged

3328 vul audit #3390

merged 23 commits into from
Jan 17, 2025

Conversation

raftmsohani
Copy link

@raftmsohani raftmsohani commented Dec 24, 2024

Summary of Changes

Provide a brief summary of changes
Pull request closes #3328

How to Test

run npm audit

Deliverables

More details on how deliverables herein are assessed included here.

Deliverable 1: Accepted Features

Checklist of ACs:

  • no high security vulnerabilities due to react upgrade.
  • lfrohlich and/or adpennington confirmed that ACs are met.

Deliverable 2: Tested Code

  • Are all areas of code introduced in this PR meaningfully tested?
    • If this PR introduces backend code changes, are they meaningfully tested?
    • If this PR introduces frontend code changes, are they meaningfully tested?
  • Are code coverage minimums met?
    • Frontend coverage: [insert coverage %] (see CodeCov Report comment in PR)
    • Backend coverage: [insert coverage %] (see CodeCov Report comment in PR)

Deliverable 3: Properly Styled Code

  • Are backend code style checks passing on CircleCI?
  • Are frontend code style checks passing on CircleCI?
  • Are code maintainability principles being followed?

Deliverable 4: Accessible

  • Does this PR complete the epic?
  • Are links included to any other gov-approved PRs associated with epic?
  • Does PR include documentation for Raft's a11y review?
  • Did automated and manual testing with iamjolly and ttran-hub using Accessibility Insights reveal any errors introduced in this PR?

Deliverable 5: Deployed

  • Was the code successfully deployed via automated CircleCI process to development on Cloud.gov?

Deliverable 6: Documented

  • Does this PR provide background for why coding decisions were made?
  • If this PR introduces backend code, is that code easy to understand and sufficiently documented, both inline and overall?
  • If this PR introduces frontend code, is that code easy to understand and sufficiently documented, both inline and overall?
  • If this PR introduces dependencies, are their licenses documented?
  • Can reviewer explain and take ownership of these elements presented in this code review?

Deliverable 7: Secure

  • Does the OWASP Scan pass on CircleCI?
  • Do manual code review and manual testing detect any new security issues?
  • If new issues detected, is investigation and/or remediation plan documented?

Deliverable 8: User Research

Research product(s) clearly articulate(s):

  • the purpose of the research
  • methods used to conduct the research
  • who participated in the research
  • what was tested and how
  • impact of research on TDP
  • (if applicable) final design mockups produced for TDP development

@raftmsohani raftmsohani self-assigned this Dec 24, 2024
@raftmsohani
Copy link
Author

now only getting this:

# npm audit report

request  *
Severity: moderate
Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6
fix available via `npm audit fix --force`
Will install jest-enzyme@4.2.0, which is a breaking change
node_modules/request
  jsdom  0.1.20 || 0.2.0 - 16.5.3
  Depends on vulnerable versions of request
  Depends on vulnerable versions of request-promise-native
  node_modules/jest-environment-enzyme/node_modules/jsdom
    jest-environment-jsdom  10.0.2 - 25.5.0
    Depends on vulnerable versions of jsdom
    node_modules/jest-environment-enzyme/node_modules/jest-environment-jsdom
      jest-environment-enzyme  *
      Depends on vulnerable versions of jest-environment-jsdom
      node_modules/jest-environment-enzyme
        jest-enzyme  >=5.0.0
        Depends on vulnerable versions of jest-environment-enzyme
        node_modules/jest-enzyme
  request-promise-core  *
  Depends on vulnerable versions of request
  node_modules/request-promise-core
    request-promise-native  >=1.0.0
    Depends on vulnerable versions of request
    Depends on vulnerable versions of request-promise-core
    node_modules/request-promise-native

7 moderate severity vulnerabilities

@raftmsohani raftmsohani changed the base branch from develop to 1577-upgrade-frontend-deps January 3, 2025 18:45
@raftmsohani raftmsohani changed the base branch from 1577-upgrade-frontend-deps to develop January 3, 2025 18:45
@raftmsohani raftmsohani changed the base branch from develop to 1577-upgrade-frontend-deps January 3, 2025 18:46
@raftmsohani raftmsohani changed the base branch from 1577-upgrade-frontend-deps to develop January 3, 2025 18:46
@raftmsohani raftmsohani added dependencies Pull requests that update a dependency file raft review This issue is ready for raft review labels Jan 3, 2025
"braces": "^3.0.3",
"tough-cookie": "^4.1.3",
"postcss": "^8.4.31",
"micromatch": "^4.0.8"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will these have to be changed/removed when the downstream packages update their dependencies?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is just interim solution

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.38%. Comparing base (d6faa15) to head (442fdd7).
Report is 3 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #3390   +/-   ##
========================================
  Coverage    91.38%   91.38%           
========================================
  Files          299      299           
  Lines         8614     8614           
  Branches       640      640           
========================================
  Hits          7872     7872           
  Misses         622      622           
  Partials       120      120           
Flag Coverage Δ
dev-backend 91.24% <ø> (ø)
dev-frontend 92.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d98e5f...442fdd7. Read the comment docs.

@raftmsohani raftmsohani requested review from ADPennington and removed request for elipe17 January 7, 2025 14:33
@raftmsohani raftmsohani added QASP Review and removed raft review This issue is ready for raft review labels Jan 7, 2025
Copy link
Collaborator

@ADPennington ADPennington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test results here: #3328 (comment)

thanks @raftmsohani 🚀

@raftmsohani raftmsohani merged commit f748ba5 into develop Jan 17, 2025
17 checks passed
@raftmsohani raftmsohani deleted the 3328-vul-audit branch January 17, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file frontend Ready to Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve vulnerabilities in frontend dependencies after React upgrade
4 participants